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

Method test_bearer_headers

tests/test_authentication.py:374–375  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

372
373class TestGitHubAuth:
374 def test_bearer_headers(self):
375 assert GitHubAuth().auth_headers("my-token", "bearer") == {"Authorization": "Bearer my-token"}
376
377 def test_unsupported_scheme_raises(self):
378 with pytest.raises(ValueError, match="basic-pat"):

Callers

nothing calls this directly

Calls 2

GitHubAuthClass · 0.90
auth_headersMethod · 0.45

Tested by

no test coverage detected