| 6 | |
| 7 | |
| 8 | class FakeResponse: |
| 9 | def __init__(self, status_code=200, payload=None, text="", content=b""): |
| 10 | self.status_code = status_code |
| 11 | self._payload = payload or {} |
| 12 | self.text = text |
| 13 | self.content = content |
| 14 | self.headers = {} |
| 15 | |
| 16 | def json(self): |
| 17 | return self._payload |
| 18 | |
| 19 | |
| 20 | class FakeSession: |
no outgoing calls