| 45 | |
| 46 | |
| 47 | class DummyAsyncClient: |
| 48 | def __init__(self, response_data): |
| 49 | self._response = DummyResponse(response_data) |
| 50 | |
| 51 | async def __aenter__(self): |
| 52 | return self |
| 53 | |
| 54 | async def __aexit__(self, exc_type, exc, tb): |
| 55 | return False |
| 56 | |
| 57 | async def post(self, *args, **kwargs): |
| 58 | return self._response |
| 59 | |
| 60 | |
| 61 | @pytest.fixture |
no outgoing calls