new keyword api test working

This commit is contained in:
vabene1111
2021-03-10 20:31:00 +01:00
parent b9b7a125f0
commit 528f329ebb
5 changed files with 125 additions and 64 deletions

View File

@@ -1,6 +1,7 @@
from django.test import utils
from django_scopes import scopes_disabled
# disables scoping error in all queries used inside the test functions
# fixtures need to have their own scopes_disabled
# disables scoping error in all queries used inside the test FUNCTIONS
# FIXTURES need to have their own scopes_disabled!!
# This is done by hook pytest_fixture_setup in conftest.py for all non yield fixtures
utils.setup_databases = scopes_disabled()(utils.setup_databases)