mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-15 17:51:27 +00:00
14 lines
283 B
Python
14 lines
283 B
Python
|
class MockResponse:
|
||
|
def __init__(self, text, status):
|
||
|
self._text = text
|
||
|
self.status = status
|
||
|
|
||
|
async def text(self):
|
||
|
return self._text
|
||
|
|
||
|
async def __aexit__(self, exc_type, exc, tb):
|
||
|
pass
|
||
|
|
||
|
async def __aenter__(self):
|
||
|
return self
|