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

Method test_basic_pat_headers

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

Source from the content-addressed store, hash-verified

411
412class TestAzureDevOpsAuth:
413 def test_basic_pat_headers(self):
414 headers = AzureDevOpsAuth().auth_headers("my-pat", "basic-pat")
415 encoded = base64.b64encode(b":my-pat").decode("ascii")
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"]

Callers

nothing calls this directly

Calls 2

AzureDevOpsAuthClass · 0.90
auth_headersMethod · 0.45

Tested by

no test coverage detected