You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
class MockResponse:
|
|
def __init__(self, json, status):
|
|
self._json = json
|
|
self.status = status
|
|
|
|
async def json(self):
|
|
return self._json
|
|
|
|
async def __aexit__(self, exc_type, exc, tb):
|
|
pass
|
|
|
|
async def __aenter__(self):
|
|
return self
|