From 54eea80bf7a30ed8ee76450bfea83888cfb25a58 Mon Sep 17 00:00:00 2001 From: harjoth Date: Fri, 10 Jul 2026 14:25:42 -0700 Subject: [PATCH] test(cli): cover termux oneshot usage file --- 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 3d336d8d66f4e..5ff0d473cceb1 100644 --- a/tests/hermes_cli/test_tui_resume_flow.py +++ b/tests/hermes_cli/test_tui_resume_flow.py @@ -359,7 +359,17 @@ def test_termux_fast_cli_launch_oneshot_uses_light_parser(monkeypatch, main_mod) monkeypatch.setattr( sys, "argv", - ["hermes", "-z", "hello", "--model", "gpt-test", "--provider", "openai"], + [ + "hermes", + "-z", + "hello", + "--model", + "gpt-test", + "--provider", + "openai", + "--usage-file", + "usage.json", + ], ) monkeypatch.setattr( main_mod, "_prepare_agent_startup", lambda args: prepared.append(args.command) @@ -390,7 +400,7 @@ def test_termux_fast_cli_launch_oneshot_uses_light_parser(monkeypatch, main_mod) "model": "gpt-test", "provider": "openai", "toolsets": None, - "usage_file": None, + "usage_file": "usage.json", }