all tests migrated and improved
This commit is contained in:
7
cookbook/tests/api/__init__.py
Normal file
7
cookbook/tests/api/__init__.py
Normal 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)
|
Reference in New Issue
Block a user