fixed normal django test running with scopes

This commit is contained in:
vabene1111 2021-02-25 22:19:51 +01:00
parent 74e731e334
commit c99c944130

View File

@ -0,0 +1,8 @@
from django.test.runner import DiscoverRunner
from django_scopes import scopes_disabled
class CustomTestRunner(DiscoverRunner):
def run_tests(self, *args, **kwargs):
with scopes_disabled():
return super().run_tests(*args, **kwargs)