Skip to content

Commit b219fcb

Browse files
author
Lode Rosseel
committed
Chore: reformat
1 parent 95b03a0 commit b219fcb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pytest_django/plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,11 +875,13 @@ def unblock(self, sync_only=False, async_only=False) -> AbstractContextManager[N
875875
raise ValueError("Cannot use both sync_only and async_only. Choose at most one.")
876876
self._save_active_wrapper()
877877
if sync_only:
878+
878879
def _method(wrapper_self, *args, **kwargs):
879880
return self._unblocked_sync_only(wrapper_self, *args, **kwargs)
880881

881882
self._dj_db_wrapper.ensure_connection = _method
882883
elif async_only:
884+
883885
def _method(wrapper_self, *args, **kwargs):
884886
return self._unblocked_async_only(wrapper_self, *args, **kwargs)
885887

0 commit comments

Comments
 (0)