diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..7b7930a --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,11 @@ +import pytest + +pytest_plugins = ('pytest_asyncio',) + +@pytest.fixture(scope="session") +def event_loop(): + """Create an instance of the default event loop for each test case.""" + import asyncio + loop = asyncio.get_event_loop_policy().new_event_loop() + yield loop + loop.close() \ No newline at end of file