(self)
| 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"} |
nothing calls this directly
no test coverage detected