(self, tmp_path)
| 148 | assert entries[0].auth == "azure-cli" |
| 149 | |
| 150 | def test_multiple_entries(self, tmp_path): |
| 151 | cfg = tmp_path / "auth.json" |
| 152 | cfg.write_text(json.dumps({ |
| 153 | "providers": [ |
| 154 | {"hosts": ["github.com"], "provider": "github", "auth": "bearer", "token_env": "GH_TOKEN"}, |
| 155 | {"hosts": ["dev.azure.com"], "provider": "azure-devops", "auth": "basic-pat", "token_env": "ADO_PAT"}, |
| 156 | ] |
| 157 | })) |
| 158 | entries = load_auth_config(cfg) |
| 159 | assert len(entries) == 2 |
| 160 | |
| 161 | # -- Negative: validation errors -- |
| 162 |
nothing calls this directly
no test coverage detected