mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
basics of pytest
This commit is contained in:
6
cookbook/tests/pytest/__init__.py
Normal file
6
cookbook/tests/pytest/__init__.py
Normal 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)
|
||||
Reference in New Issue
Block a user