tests.py
author Radek Brich <radek.brich@devl.cz>
Sat, 29 Sep 2012 14:01:47 +0200
changeset 50 f71d3abbb18f
parent 49 08e4dfe1b0cb
child 75 39f777341db4
permissions -rwxr-xr-x
Add test_prettysize to tests.py.

#!/usr/bin/env python3

import unittest

from tests import test_rowdict
from tests import test_pgmanager
from tests import test_prettysize

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(test_pgmanager))
suite.addTests(loader.loadTestsFromModule(test_prettysize))

if enable_mysql:
    suite.addTests(loader.loadTestsFromModule(test_mymanager))

runner = unittest.TextTestRunner(verbosity=2)
result = runner.run(suite)