Skip to content

Commit 2e4af47

Browse files
committed
fix format
1 parent 98b147f commit 2e4af47

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

intbot/tests/test_bot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# it seems to fix the issue and also speed up the test from ~6s down to 1s.
1717
# Thanks to (@gbdlin) for help with debugging.
1818

19+
1920
@pytest.fixture(autouse=True)
2021
def fix_async_db(request):
2122
"""
@@ -45,7 +46,10 @@ def fix_async_db(request):
4546
4647
We apologize in advance for the shitty implementation.
4748
"""
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+
):
4953
# Only run for async tests that use the database
5054
yield
5155
return

0 commit comments

Comments
 (0)