1
1
from subprocess import check_call
2
3
from django.test.simple import DjangoTestSuiteRunner
6
8
"""Custom test runner; ensures that the test database cluster is up."""
10
def build_suite(self, test_labels, extra_tests=None, **kwargs):
8
15
def setup_databases(self, *args, **kwargs):
9
16
"""Fire up the db cluster, then punt to original implementation."""
10
17
check_call(['bin/maasdb', 'start', './db/', 'disposable'])