Sith/sith/testrunner.py

10 lines
275 B
Python
Raw Normal View History

2023-05-10 09:56:33 +00:00
from django.core.management import call_command
from django.test.runner import DiscoverRunner
class SithTestRunner(DiscoverRunner):
def setup_databases(self, **kwargs):
res = super().setup_databases(**kwargs)
call_command("populate")
return res