feat: REPL and CLI wiring; end-to-end capture-to-spec smoke test
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user