test: isolate unmatched-hint regression from live ~/.claude credentials
Follow-up to the #65844 salvage: the new anthropic pool test must stub read_claude_code_credentials like the sibling tests, otherwise a dev machine's live claude_code singleton seeds a third entry and the no-benching assertion fails outside CI.
This commit is contained in:
parent
3d67f00fe1
commit
547bf1ee9e
|
|
@ -453,6 +453,10 @@ def test_unmatched_api_key_hint_rotates_without_benching_innocent_key(tmp_path,
|
|||
innocent credential. Now it rotates without marking anything.
|
||||
"""
|
||||
monkeypatch.setenv("HERMES_HOME", str(tmp_path / "hermes"))
|
||||
# Keep the dev machine's live ~/.claude credentials from seeding a
|
||||
# claude_code singleton entry into this pool (same isolation as the
|
||||
# other anthropic pool tests in this file).
|
||||
monkeypatch.setattr("agent.anthropic_adapter.read_claude_code_credentials", lambda: None)
|
||||
_write_auth_store(
|
||||
tmp_path,
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue