Reorganised tests

This commit is contained in:
2010-01-26 17:18:00 +00:00
parent 469021f596
commit 866a5e6ca3
4 changed files with 21 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
all:
python test.py
./setup.py test
clean:
rm -f *.pyc

View File

@@ -27,5 +27,8 @@ classifiers=[
"Programming Language :: Python",
"Topic :: Multimedia",
"Topic :: Utilities"
]
],
test_suite="tests.all"
)

View File

@@ -0,0 +1,11 @@
import unittest
import testtvorganise
def all():
suite = unittest.TestSuite()
testtvorganise.suite(suite)
return suite

View File

@@ -45,8 +45,11 @@ class testFindFiles(unittest.TestCase):
def testCrapInput(self):
self.assertEqual(len(tvorganise.find_files("belfrhe")),0)
def suite():
def suite(suite=None):
if not suite:
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(testTvOrganise))
suite.addTest(unittest.makeSuite(testFindFiles))