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