tests.py
author Radek Brich <radek.brich@devl.cz>
Sat, 29 Sep 2012 12:08:47 +0200
changeset 48 b82c7c2fb5af
child 49 08e4dfe1b0cb
permissions -rwxr-xr-x
PgManager: Fix logging, log queries before executing, possible exceptions are logged after. Add tests for RowDict. Add tests.py - runs all tests.

#!/usr/bin/env python3

import unittest

from tests import test_rowdict
from tests import testpgmanager

loader = unittest.TestLoader()

suite = unittest.TestSuite()
suite.addTests(loader.loadTestsFromModule(test_rowdict))
suite.addTests(loader.loadTestsFromModule(testpgmanager))

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