diff --git a/pytest_pootle/fixtures/site.py b/pytest_pootle/fixtures/site.py index a246e63a508..6b212734cb0 100644 --- a/pytest_pootle/fixtures/site.py +++ b/pytest_pootle/fixtures/site.py @@ -28,10 +28,10 @@ def setup_db_if_needed(request): @pytest.fixture(scope='session') -def post_db_setup(translations_directory, _django_db_setup, - _django_cursor_wrapper, request): +def post_db_setup(translations_directory, django_db_setup, + django_db_blocker, request): """Sets up the site DB for the test session.""" - with _django_cursor_wrapper: + with django_db_blocker: PootleTestEnv(request).setup()