MCPcopy
hub / github.com/coderamp-labs/gitingest / test_validate_github_token_invalid

Function test_validate_github_token_invalid

tests/test_git_utils.py:52–55  ·  view source on GitHub ↗

Test that ``validate_github_token`` raises ``InvalidGitHubTokenError`` on malformed tokens.

(token: str)

Source from the content-addressed store, hash-verified

50 ],
51)
52def test_validate_github_token_invalid(token: str) -> None:
53 """Test that ``validate_github_token`` raises ``InvalidGitHubTokenError`` on malformed tokens."""
54 with pytest.raises(InvalidGitHubTokenError):
55 validate_github_token(token)
56
57
58@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

validate_github_tokenFunction · 0.90

Tested by

no test coverage detected