16 lines
514 B
Python
16 lines
514 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 == "openrouter/xiaomi/mimo-v2.5-pro"
|
|
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
|