basics of pytest

This commit is contained in:
vabene1111
2021-02-25 22:36:20 +01:00
parent 54e71f2910
commit 5fd03e7cdc
4 changed files with 87 additions and 0 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)