mirror of
https://github.com/ihabunek/toot
synced 2024-12-23 07:27:12 +01:00
11 lines
207 B
Python
11 lines
207 B
Python
|
|
||
|
class MockResponse:
|
||
|
def __init__(self, response_data={}):
|
||
|
self.response_data = response_data
|
||
|
|
||
|
def raise_for_status(self):
|
||
|
pass
|
||
|
|
||
|
def json(self):
|
||
|
return self.response_data
|