aboutsummaryrefslogtreecommitdiff
path: root/test_pytest
diff options
context:
space:
mode:
Diffstat (limited to 'test_pytest')
-rw-r--r--test_pytest/.coveragerc6
-rw-r--r--test_pytest/conftest.py16
2 files changed, 22 insertions, 0 deletions
diff --git a/test_pytest/.coveragerc b/test_pytest/.coveragerc
new file mode 100644
index 0000000..17ad177
--- /dev/null
+++ b/test_pytest/.coveragerc
@@ -0,0 +1,6 @@
+[report]
+show_missing = True
+
+[run]
+include =
+ ../src_py/*
diff --git a/test_pytest/conftest.py b/test_pytest/conftest.py
new file mode 100644
index 0000000..39370af
--- /dev/null
+++ b/test_pytest/conftest.py
@@ -0,0 +1,16 @@
+import asyncio
+
+import pytest
+
+from hat import aio
+
+
+@pytest.fixture(scope='session')
+def event_loop():
+ loop = asyncio.get_event_loop()
+ yield loop
+ loop.close()
+
+
+def pytest_configure(config):
+ aio.init_asyncio()