mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-13 23:02:16 +00:00
Reorganised tests
This commit is contained in:
5
setup.py
5
setup.py
@@ -27,5 +27,8 @@ classifiers=[
|
||||
"Programming Language :: Python",
|
||||
"Topic :: Multimedia",
|
||||
"Topic :: Utilities"
|
||||
]
|
||||
],
|
||||
|
||||
test_suite="tests.all"
|
||||
|
||||
)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import unittest
|
||||
import testtvorganise
|
||||
|
||||
def all():
|
||||
|
||||
suite = unittest.TestSuite()
|
||||
|
||||
testtvorganise.suite(suite)
|
||||
|
||||
return suite
|
||||
|
||||
|
||||
@@ -45,8 +45,11 @@ class testFindFiles(unittest.TestCase):
|
||||
def testCrapInput(self):
|
||||
self.assertEqual(len(tvorganise.find_files("belfrhe")),0)
|
||||
|
||||
def suite():
|
||||
suite = unittest.TestSuite()
|
||||
def suite(suite=None):
|
||||
|
||||
if not suite:
|
||||
suite = unittest.TestSuite()
|
||||
|
||||
suite.addTest(unittest.makeSuite(testTvOrganise))
|
||||
suite.addTest(unittest.makeSuite(testFindFiles))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user