You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pytest does a lot of magic things behind the scenes with test functions that take arguments. With pytest it'd be better to use Pytets fixtures instead of the @aioresponses decorator:
On my end I have to specify ClientSession(loop=loop) for the examples to work, otherwise this line crashes with RuntimeError: no running event loop. Is that expected? I can post more about my environment if not
If I run the first example, as it is, I get the error:
However if placed in a class it works:
Python 3.10.4
aiohttp 3.8.1
aioresponses 0.7.3
pytest 7.1.2
The text was updated successfully, but these errors were encountered: