Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
opnoice authored Nov 15, 2024
1 parent 9db0079 commit 6e59fe0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 6e59fe0

Please sign in to comment.