all tests migrated and improved

This commit is contained in:
vabene1111
2021-03-17 22:10:58 +01:00
parent ad0d802e41
commit 76eeed1a77
53 changed files with 266 additions and 443 deletions

View File

@ -0,0 +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!!
# This is done by hook pytest_fixture_setup in conftest.py for all non yield fixtures
utils.setup_databases = scopes_disabled()(utils.setup_databases)