Build a GitHub ``AuthConfigEntry`` for testing.
(token_env: str = "GH_TOKEN")
| 6 | |
| 7 | |
| 8 | def make_github_auth_entry(token_env: str = "GH_TOKEN") -> AuthConfigEntry: |
| 9 | """Build a GitHub ``AuthConfigEntry`` for testing.""" |
| 10 | return AuthConfigEntry( |
| 11 | hosts=("github.com", "api.github.com", "raw.githubusercontent.com", "codeload.github.com"), |
| 12 | provider="github", |
| 13 | auth="bearer", |
| 14 | token_env=token_env, |
| 15 | ) |
| 16 | |
| 17 | |
| 18 | def inject_github_config(monkeypatch, token_env: str = "GH_TOKEN") -> None: |
no test coverage detected