16 lines
498 B
Python
16 lines
498 B
Python
from auto_reverse.cli import _parse_args
|
|
|
|
|
|
def test_parse_minimal():
|
|
cfg = _parse_args(["https://app.example.com"])
|
|
assert cfg.target_url == "https://app.example.com"
|
|
assert cfg.model == "claude-opus-4-8"
|
|
assert cfg.headless is False
|
|
|
|
|
|
def test_parse_scope_and_flags():
|
|
cfg = _parse_args(["https://x.com", "--scope", "a.com,b.com", "--headless", "--gen-client"])
|
|
assert cfg.scope_hosts == {"a.com", "b.com"}
|
|
assert cfg.headless is True
|
|
assert cfg.gen_client is True
|