Inject a GitHub auth.json config entry into the auth HTTP module.
(monkeypatch, token_env: str = "GH_TOKEN")
| 16 | |
| 17 | |
| 18 | def inject_github_config(monkeypatch, token_env: str = "GH_TOKEN") -> None: |
| 19 | """Inject a GitHub auth.json config entry into the auth HTTP module.""" |
| 20 | from specify_cli.authentication import http as _auth_http |
| 21 | monkeypatch.setattr(_auth_http, "_config_override", [make_github_auth_entry(token_env)]) |