The agent that turns websites into APIs!
test: assert newest run after provider interruption
kalil0321a2e08c476b3f
diff --git a/tests/test_cli_agent_json.py b/tests/test_cli_agent_json.pyindex 9f1c4a7..8a8e31f 100644--- a/tests/test_cli_agent_json.py+++ b/tests/test_cli_agent_json.py@@ -561,6 +561,7 @@ def test_provider_interrupt_output_modes(tmp_path, monkeypatch, sdk, output_flagconfig = ConfigManager(tmp_path / "config.json")config.config.update({"sdk": sdk, "agent_provider": "chrome-mcp", "real_time_sync": False})monkeypatch.setenv("CURSOR_API_KEY", "test-only")+ SessionManager(tmp_path / "history.json").add_run("older-run", "previous prompt")with ExitStack() as stack:stack.enter_context(patch("reverse_api.cli.config_manager", config))stack.enter_context(patch("reverse_api.cli.session_manager", SessionManager(tmp_path / "history.json")))@@ -610,4 +611,4 @@ def test_provider_interrupt_output_modes(tmp_path, monkeypatch, sdk, output_flagif after_result:history = json.loads((tmp_path / "history.json").read_text())- assert history[-1]["paths"]["script_path"]+ assert history[0]["paths"]["script_path"]