mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06:13 +01:00
- added testsuite module which aggregates all testcases
This commit is contained in:
parent
88a961cae4
commit
5b6aa0a4fc
10
tests/suite.py
Normal file
10
tests/suite.py
Normal 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)
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user