From d3d768efb9f713f166e480e14c15e6444d241dab Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Tue, 30 Jun 2026 03:14:26 -0700 Subject: [PATCH] test(copilot): update stale get_copilot_api_token mock to tuple signature get_copilot_api_token now returns (api_token, base_url); the auth-remove suppression test still mocked it as a bare string, mis-unpacking into the credential-pool seed path and failing with 'No credential #1'. --- tests/hermes_cli/test_auth_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hermes_cli/test_auth_commands.py b/tests/hermes_cli/test_auth_commands.py index eba225a96b5..9289da8db63 100644 --- a/tests/hermes_cli/test_auth_commands.py +++ b/tests/hermes_cli/test_auth_commands.py @@ -1859,7 +1859,7 @@ def test_auth_remove_copilot_suppresses_all_variants(tmp_path, monkeypatch): return_value=("ghp_fake", "gh"), ), patch( "hermes_cli.copilot_auth.get_copilot_api_token", - return_value="ghu_fake_api", + return_value=("ghu_fake_api", None), ): auth_remove_command(SimpleNamespace(provider="copilot", target="1"))