MCPcopy Index your code
hub / github.com/github/spec-kit / test_resolve_token_from_env

Method test_resolve_token_from_env

tests/test_authentication.py:381–383  ·  view source on GitHub ↗
(self, monkeypatch)

Source from the content-addressed store, hash-verified

379 GitHubAuth().auth_headers("tok", "basic-pat")
380
381 def test_resolve_token_from_env(self, monkeypatch):
382 monkeypatch.setenv("GH_TOKEN", "env-token")
383 assert GitHubAuth().resolve_token(_github_entry()) == "env-token"
384
385 def test_resolve_token_inline(self):
386 assert GitHubAuth().resolve_token(_github_entry(token="inline-tok")) == "inline-tok"

Callers

nothing calls this directly

Calls 3

GitHubAuthClass · 0.90
_github_entryFunction · 0.85
resolve_tokenMethod · 0.45

Tested by

no test coverage detected