Closed synrg closed 4 years ago
Not really a bug, since the old tests are for code that no longer exists in its original form. Absence of tests for new code is not a bug, but a TODO.
It looks like AsyncMock from unittest.mock is the way forward. See the question here https://github.com/pytest-dev/pytest-asyncio/issues/108 and their official recommendation, which is to use AsyncMock. See also the API doc at https://docs.python.org/3/library/unittest.mock.html#unittest.mock.AsyncMock
Fixed in 672cea37132e3a96aace39db323fc2eb3b654dd3
In the switch from
requests
toaiohttp
, all tests that mockedrequests
broke. This is far from ideal. We need a replacement that works with coroutines to enable them again.