mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed normal django test running with scopes
This commit is contained in:
8
cookbook/helper/CustomTestRunner.py
Normal file
8
cookbook/helper/CustomTestRunner.py
Normal 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)
|
||||||
Reference in New Issue
Block a user