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 1ff6679 commit 3fff7fcCopy full SHA for 3fff7fc
pytest_django/plugin.py
@@ -845,6 +845,11 @@ def block(self) -> ContextManager[None]:
845
return _DatabaseBlockerContextManager(self)
846
847
def restore(self) -> None:
848
+ """Undo a previous call to block() or unblock().
849
+
850
+ Consider using block() and unblock() as context managers instead of
851
+ manually calling restore().
852
+ """
853
self._dj_db_wrapper.ensure_connection = self._history.pop()
854
855
0 commit comments