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

Function test_api_key

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

Source from the content-addressed store, hash-verified

19
20
21def test_api_key(monkeypatch):
22 monkeypatch.setenv("ANTHROPIC_API_KEY", "sk-ant-x")
23 assert _resolve_auth_env() == {"ANTHROPIC_API_KEY": "sk-ant-x"}
24
25
26def test_oauth_token(monkeypatch):

Callers

nothing calls this directly

Calls 1

_resolve_auth_envFunction · 0.90

Tested by

no test coverage detected