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

Function make_github_auth_entry

tests/auth_helpers.py:8–15  ·  view source on GitHub ↗

Build a GitHub ``AuthConfigEntry`` for testing.

(token_env: str = "GH_TOKEN")

Source from the content-addressed store, hash-verified

6
7
8def 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
18def inject_github_config(monkeypatch, token_env: str = "GH_TOKEN") -> None:

Callers 1

inject_github_configFunction · 0.85

Calls 1

AuthConfigEntryClass · 0.90

Tested by

no test coverage detected