1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 01:46:13 +01:00

- added testsuite module which aggregates all testcases

This commit is contained in:
Marcus Huewe 2010-08-24 18:59:31 +02:00
parent 88a961cae4
commit 5b6aa0a4fc
4 changed files with 23 additions and 1 deletions

10
tests/suite.py Normal file
View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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