(self, tmp_path)
| 92 | assert entries[0].token_env == "GH_TOKEN" |
| 93 | |
| 94 | def test_valid_ado_config(self, tmp_path): |
| 95 | cfg = tmp_path / "auth.json" |
| 96 | cfg.write_text(json.dumps({ |
| 97 | "providers": [{ |
| 98 | "hosts": ["dev.azure.com"], |
| 99 | "provider": "azure-devops", |
| 100 | "auth": "basic-pat", |
| 101 | "token_env": "AZURE_DEVOPS_PAT", |
| 102 | }] |
| 103 | })) |
| 104 | entries = load_auth_config(cfg) |
| 105 | assert len(entries) == 1 |
| 106 | assert entries[0].provider == "azure-devops" |
| 107 | assert entries[0].auth == "basic-pat" |
| 108 | |
| 109 | def test_inline_token(self, tmp_path): |
| 110 | cfg = tmp_path / "auth.json" |
nothing calls this directly
no test coverage detected