mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-13 06:42:16 +00:00
Reorganised tests
This commit is contained in:
@@ -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