We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23adcbe commit 259fb85Copy full SHA for 259fb85
pytest_django/plugin.py
@@ -476,6 +476,13 @@ def get_order_number(test: pytest.Item) -> int:
476
items.sort(key=get_order_number)
477
478
479
+def pytest_unconfigure(config: pytest.Config) -> None:
480
+ if blocking_manager_key not in config.stash:
481
+ return
482
+ blocking_manager = config.stash[blocking_manager_key]
483
+ blocking_manager.unblock()
484
+
485
486
@pytest.fixture(autouse=True, scope="session")
487
def django_test_environment(request: pytest.FixtureRequest) -> Generator[None, None, None]:
488
"""Setup Django's test environment for the testing session.
0 commit comments