(self, tmp_path)
| 107 | assert entries[0].auth == "basic-pat" |
| 108 | |
| 109 | def test_inline_token(self, tmp_path): |
| 110 | cfg = tmp_path / "auth.json" |
| 111 | cfg.write_text(json.dumps({ |
| 112 | "providers": [{ |
| 113 | "hosts": ["github.com"], |
| 114 | "provider": "github", |
| 115 | "auth": "bearer", |
| 116 | "token": "ghp_inline_token", |
| 117 | }] |
| 118 | })) |
| 119 | entries = load_auth_config(cfg) |
| 120 | assert entries[0].token == "ghp_inline_token" |
| 121 | |
| 122 | def test_azure_ad_config(self, tmp_path): |
| 123 | cfg = tmp_path / "auth.json" |
nothing calls this directly
no test coverage detected