We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b147f commit 2e4af47Copy full SHA for 2e4af47
intbot/tests/test_bot.py
@@ -16,6 +16,7 @@
16
# it seems to fix the issue and also speed up the test from ~6s down to 1s.
17
# Thanks to (@gbdlin) for help with debugging.
18
19
+
20
@pytest.fixture(autouse=True)
21
def fix_async_db(request):
22
"""
@@ -45,7 +46,10 @@ def fix_async_db(request):
45
46
47
We apologize in advance for the shitty implementation.
48
- if request.node.get_closest_marker("asyncio") is None or request.node.get_closest_marker("django_db") is None:
49
+ if (
50
+ request.node.get_closest_marker("asyncio") is None
51
+ or request.node.get_closest_marker("django_db") is None
52
+ ):
53
# Only run for async tests that use the database
54
yield
55
return
0 commit comments