from django.db import connection
-OLD_DB_NAME = settings.DATABASES['default']['NAME']
-VERBOSITY = 0
-def setUpModule():
- setup_test_environment()
- settings.DEBUG = False
- connection.creation.create_test_db(VERBOSITY)
-
-def tearDownModule():
- connection.creation.destroy_test_db(OLD_DB_NAME, VERBOSITY)
- teardown_test_environment()
-
class ClusterStationTestCases(TestCase):
fixtures = ['test_flowcells.json']
errmsgs = list(inference.run_validation())
self.assertEqual(len(errmsgs), 0)
-
-OLD_DB = settings.DATABASES['default']['NAME']
-def setUpModule():
- setup_test_environment()
- connection.creation.create_test_db()
-
-def tearDownModule():
- connection.creation.destroy_test_db(OLD_DB)
- teardown_test_environment()
-
def suite():
from unittest2 import TestSuite, defaultTestLoader
suite = TestSuite()