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

Function test_create_git_auth_header

tests/test_git_utils.py:112–117  ·  view source on GitHub ↗

Test that ``create_git_auth_header`` produces correct base64-encoded header.

(token: str)

Source from the content-addressed store, hash-verified

110 ],
111)
112def test_create_git_auth_header(token: str) -> None:
113 """Test that ``create_git_auth_header`` produces correct base64-encoded header."""
114 header = create_git_auth_header(token)
115 expected_basic = base64.b64encode(f"x-oauth-basic:{token}".encode()).decode()
116 expected = f"http.https://github.com/.extraheader=Authorization: Basic {expected_basic}"
117 assert header == expected
118
119
120@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

create_git_auth_headerFunction · 0.90

Tested by

no test coverage detected