| 7 | |
| 8 | def test_fetch_github_info(monkeypatch): |
| 9 | class FakeResponse: |
| 10 | def __init__(self, content) -> None: |
| 11 | assert isinstance(content, (bytes, str)) |
| 12 | self.content = content |
| 13 | |
| 14 | def json(self): |
| 15 | return json.loads(self.content) |
| 16 | |
| 17 | def mock_response(*args, **kwargs): |
| 18 | assert args[0] == AUTHENTICATED_USER_ENDPOINT |
no outgoing calls