Single event loop for the module so client and tests share one loop.
()
| 67 | |
| 68 | @pytest.fixture(scope="module") |
| 69 | def event_loop(): |
| 70 | """Single event loop for the module so client and tests share one loop.""" |
| 71 | loop = asyncio.new_event_loop() |
| 72 | yield loop |
| 73 | loop.close() |
| 74 | |
| 75 | |
| 76 | @pytest_asyncio.fixture |