MCPcopy Index your code
hub / github.com/github/spec-kit / inject_github_config

Function inject_github_config

tests/auth_helpers.py:18–21  ·  view source on GitHub ↗

Inject a GitHub auth.json config entry into the auth HTTP module.

(monkeypatch, token_env: str = "GH_TOKEN")

Source from the content-addressed store, hash-verified

16
17
18def 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)])

Callers 3

_inject_github_configFunction · 0.90
_inject_github_configMethod · 0.90
_inject_github_configMethod · 0.90

Calls 1

make_github_auth_entryFunction · 0.85

Tested by 3

_inject_github_configFunction · 0.72
_inject_github_configMethod · 0.72
_inject_github_configMethod · 0.72