diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..0cda4fd --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,14 @@ +import pytest +import asyncio +from unittest.mock import AsyncMock, MagicMock, patch +import sys +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).parent.parent)) + + +@pytest.fixture(scope="session") +def event_loop(): + loop = asyncio.get_event_loop_policy().new_event_loop() + yield loop + loop.close()