From 6e59fe0e0795ac6f9eebdd4a15d8584ca57651e3 Mon Sep 17 00:00:00 2001 From: Opnoice <78496510+opnoice@users.noreply.github.com> Date: Fri, 15 Nov 2024 08:59:53 +0530 Subject: [PATCH] Add files via upload --- tests/conftest.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/conftest.py 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