Add test for MyManager (enable only when MySQLdb is available). Configure tests using pgtoolkit.conf (same as used by other executables).
#!/usr/bin/env python3
import unittest
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)