Test that ``create_git_auth_header`` produces correct base64-encoded header.
(token: str)
| 110 | ], |
| 111 | ) |
| 112 | def 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( |
nothing calls this directly
no test coverage detected