more tests working but scopes broken

This commit is contained in:
vabene1111
2021-03-10 19:46:08 +01:00
parent 4742056223
commit b9b7a125f0
7 changed files with 199 additions and 138 deletions

View File

@@ -0,0 +1,6 @@
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
utils.setup_databases = scopes_disabled()(utils.setup_databases)