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

Method test_basic_pat_format

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

Source from the content-addressed store, hash-verified

416 assert headers == {"Authorization": f"Basic {encoded}"}
417
418 def test_basic_pat_format(self):
419 header = AzureDevOpsAuth().auth_headers("test-pat", "basic-pat")["Authorization"]
420 raw = base64.b64decode(header[len("Basic "):]).decode("ascii")
421 assert raw == ":test-pat"
422
423 def test_bearer_headers(self):
424 assert AzureDevOpsAuth().auth_headers("tok", "bearer") == {"Authorization": "Bearer tok"}

Callers

nothing calls this directly

Calls 2

AzureDevOpsAuthClass · 0.90
auth_headersMethod · 0.45

Tested by

no test coverage detected