(*args, **kwargs)
| 15 | return json.loads(self.content) |
| 16 | |
| 17 | def mock_response(*args, **kwargs): |
| 18 | assert args[0] == AUTHENTICATED_USER_ENDPOINT |
| 19 | assert "Authorization" in kwargs["headers"] |
| 20 | assert kwargs["headers"]["Authorization"].startswith("token ") |
| 21 | assert "Accept" in kwargs["headers"] |
| 22 | return FakeResponse(b'{"login":"test","id":1}') |
| 23 | |
| 24 | monkeypatch.setattr(httpx, "get", mock_response) |
| 25 | result = fetch_github_info("token") |
nothing calls this directly
no test coverage detected