(self, status_code=200, payload=None, text="")
| 3 | |
| 4 | class FakeResponse: |
| 5 | def __init__(self, status_code=200, payload=None, text=""): |
| 6 | self.status_code = status_code |
| 7 | self._payload = payload |
| 8 | self.text = text |
| 9 | self.headers = {} |
| 10 | |
| 11 | def json(self): |
| 12 | if self._payload is None: |
nothing calls this directly
no outgoing calls
no test coverage detected