Sith/sith/testrunner.py
2023-05-02 11:00:23 +02:00

10 lines
275 B
Python

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