diff --git a/tests/suite.py b/tests/suite.py new file mode 100644 index 00000000..c6dabb72 --- /dev/null +++ b/tests/suite.py @@ -0,0 +1,10 @@ +import unittest +import test_update +import test_addfiles +import test_deletefiles + +suite = unittest.TestSuite() +suite.addTests(test_addfiles.suite()) +suite.addTests(test_deletefiles.suite()) +suite.addTests(test_update.suite()) +unittest.TextTestRunner(verbosity=1).run(suite) diff --git a/tests/test_addfiles.py b/tests/test_addfiles.py index 9fb21834..85d57781 100644 --- a/tests/test_addfiles.py +++ b/tests/test_addfiles.py @@ -6,6 +6,10 @@ from common import GET, OscTestCase FIXTURES_DIR = os.path.join(os.getcwd(), 'addfile_fixtures') +def suite(): + import unittest + return unittest.makeSuite(TestAddFiles) + class TestAddFiles(OscTestCase): def _get_fixtures_dir(self): return FIXTURES_DIR diff --git a/tests/test_deletefiles.py b/tests/test_deletefiles.py index fcbba928..5fee088e 100644 --- a/tests/test_deletefiles.py +++ b/tests/test_deletefiles.py @@ -6,7 +6,11 @@ from common import GET, OscTestCase FIXTURES_DIR = os.path.join(os.getcwd(), 'deletefile_fixtures') -class TestAddFiles(OscTestCase): +def suite(): + import unittest + return unittest.makeSuite(TestDeleteFiles) + +class TestDeleteFiles(OscTestCase): def _get_fixtures_dir(self): return FIXTURES_DIR diff --git a/tests/test_update.py b/tests/test_update.py index 06d0a12b..57ca391b 100644 --- a/tests/test_update.py +++ b/tests/test_update.py @@ -6,6 +6,10 @@ from common import GET, OscTestCase from xml.etree import cElementTree as ET FIXTURES_DIR = os.path.join(os.getcwd(), 'update_fixtures') +def suite(): + import unittest + return unittest.makeSuite(TestUpdate) + class TestUpdate(OscTestCase): def _get_fixtures_dir(self): return FIXTURES_DIR