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'.
This commit is contained in:
teknium1 2026-06-30 03:14:26 -07:00 committed by Teknium
parent 3ecc58a8da
commit d3d768efb9

View file

@ -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"))