File: conftest.patch

package info (click to toggle)
caio 0.9.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 288 kB
  • sloc: ansic: 1,645; python: 632; makefile: 5
file content (21 lines) | stat: -rw-r--r-- 490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Subject: Restore conftest.py file
From: Yuri Konotopov <ykonotopov@gnome.org>
Bug: https://github.com/mosquito/caio/pull/45
Forwarded: not-needed

--- /dev/null
+++ caio/tests/conftest.py
@@ -0,0 +1,13 @@
+import pytest
+
+from caio import variants, variants_asyncio
+
+
+@pytest.fixture(params=variants)
+def context_maker(request):
+    return request.param.Context
+
+
+@pytest.fixture(params=variants_asyncio)
+def async_context_maker(request):
+    return request.param.AsyncioContext