aboutsummaryrefslogtreecommitdiff
path: root/test_pytest
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2022-06-27 01:13:26 +0200
committerbozo.kopic <bozo@kopic.xyz>2022-06-27 01:13:26 +0200
commit8d1d7b7b4a48187f5849548bbc6bb543d6de33ba (patch)
tree557eff5ff465d1ff096abbcca0005dca08ca959c /test_pytest
parent75cc60fd42c58cadc28f5eb4499f197604254aba (diff)
WIP native implementation
Diffstat (limited to 'test_pytest')
-rw-r--r--test_pytest/conftest.py14
-rw-r--r--test_pytest/pytest.ini3
2 files changed, 4 insertions, 13 deletions
diff --git a/test_pytest/conftest.py b/test_pytest/conftest.py
index 866d3ce..91f389b 100644
--- a/test_pytest/conftest.py
+++ b/test_pytest/conftest.py
@@ -1,17 +1,5 @@
-import pytest
-
from hat import aio
-loop = None
-
-
-@pytest.fixture(scope='session')
-def event_loop():
- yield loop
- loop.close()
-
-
def pytest_configure(config):
- global loop
- loop = aio.init_asyncio()
+ aio.init_asyncio()
diff --git a/test_pytest/pytest.ini b/test_pytest/pytest.ini
new file mode 100644
index 0000000..22cc084
--- /dev/null
+++ b/test_pytest/pytest.ini
@@ -0,0 +1,3 @@
+[pytest]
+asyncio_mode = auto
+timeout = 300