tests.py
changeset 49 08e4dfe1b0cb
parent 48 b82c7c2fb5af
child 50 f71d3abbb18f
--- a/tests.py	Sat Sep 29 12:08:47 2012 +0200
+++ b/tests.py	Sat Sep 29 13:53:54 2012 +0200
@@ -5,12 +5,21 @@
 from tests import test_rowdict
 from tests import testpgmanager
 
+enable_mysql = True
+try:
+    from tests import test_mymanager
+except ImportError:
+    enable_mysql = False
+
 loader = unittest.TestLoader()
 
 suite = unittest.TestSuite()
 suite.addTests(loader.loadTestsFromModule(test_rowdict))
 suite.addTests(loader.loadTestsFromModule(testpgmanager))
 
+if enable_mysql:
+    suite.addTests(loader.loadTestsFromModule(test_mymanager))
+
 runner = unittest.TextTestRunner(verbosity=2)
 result = runner.run(suite)