From b82ffdaa4dc5399897ad00211258b329d5496cdb Mon Sep 17 00:00:00 2001 From: harjoth Date: Fri, 10 Jul 2026 14:06:03 -0700 Subject: [PATCH] test(cli): preserve oneshot usage file through hard exit --- tests/hermes_cli/test_tui_resume_flow.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/hermes_cli/test_tui_resume_flow.py b/tests/hermes_cli/test_tui_resume_flow.py index 3fa313234583f..dae98be57fc2a 100644 --- a/tests/hermes_cli/test_tui_resume_flow.py +++ b/tests/hermes_cli/test_tui_resume_flow.py @@ -588,7 +588,17 @@ def test_main_top_level_oneshot_accepts_toolsets(monkeypatch, main_mod): import hermes_cli.config as config_mod monkeypatch.setattr( - sys, "argv", ["hermes", "-z", "hello", "--toolsets", "web,terminal"] + sys, + "argv", + [ + "hermes", + "-z", + "hello", + "--toolsets", + "web,terminal", + "--usage-file", + "usage.json", + ], ) monkeypatch.setitem( sys.modules, @@ -634,7 +644,7 @@ def test_main_top_level_oneshot_accepts_toolsets(monkeypatch, main_mod): "model": None, "provider": None, "toolsets": "web,terminal", - "usage_file": None, + "usage_file": "usage.json", }