Sith/sith/testrunner.py

10 lines
275 B
Python
Raw Normal View History

2023-05-02 09:00:23 +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