(self, tmp_path)
| 120 | assert entries[0].token == "ghp_inline_token" |
| 121 | |
| 122 | def test_azure_ad_config(self, tmp_path): |
| 123 | cfg = tmp_path / "auth.json" |
| 124 | cfg.write_text(json.dumps({ |
| 125 | "providers": [{ |
| 126 | "hosts": ["dev.azure.com"], |
| 127 | "provider": "azure-devops", |
| 128 | "auth": "azure-ad", |
| 129 | "tenant_id": "tid", |
| 130 | "client_id": "cid", |
| 131 | "client_secret_env": "SECRET", |
| 132 | }] |
| 133 | })) |
| 134 | entries = load_auth_config(cfg) |
| 135 | assert entries[0].auth == "azure-ad" |
| 136 | assert entries[0].tenant_id == "tid" |
| 137 | |
| 138 | def test_azure_cli_config(self, tmp_path): |
| 139 | cfg = tmp_path / "auth.json" |
nothing calls this directly
no test coverage detected