MCPcopy Create free account
hub / github.com/anthropics/defending-code-reference-harness / test_oauth_token

Function test_oauth_token

tests/test_cli_auth.py:26–28  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

24
25
26def test_oauth_token(monkeypatch):
27 monkeypatch.setenv("CLAUDE_CODE_OAUTH_TOKEN", "tok")
28 assert _resolve_auth_env() == {"CLAUDE_CODE_OAUTH_TOKEN": "tok"}
29
30
31def test_precedence_api_key_over_oauth(monkeypatch):

Callers

nothing calls this directly

Calls 1

_resolve_auth_envFunction · 0.90

Tested by

no test coverage detected