mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-13 23:02:16 +00:00
Reorganised tests
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,5 +1,5 @@
|
|||||||
all:
|
all:
|
||||||
python test.py
|
./setup.py test
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.pyc
|
rm -f *.pyc
|
||||||
|
|||||||
5
setup.py
5
setup.py
@@ -27,5 +27,8 @@ classifiers=[
|
|||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
"Topic :: Multimedia",
|
"Topic :: Multimedia",
|
||||||
"Topic :: Utilities"
|
"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):
|
def testCrapInput(self):
|
||||||
self.assertEqual(len(tvorganise.find_files("belfrhe")),0)
|
self.assertEqual(len(tvorganise.find_files("belfrhe")),0)
|
||||||
|
|
||||||
def suite():
|
def suite(suite=None):
|
||||||
suite = unittest.TestSuite()
|
|
||||||
|
if not suite:
|
||||||
|
suite = unittest.TestSuite()
|
||||||
|
|
||||||
suite.addTest(unittest.makeSuite(testTvOrganise))
|
suite.addTest(unittest.makeSuite(testTvOrganise))
|
||||||
suite.addTest(unittest.makeSuite(testFindFiles))
|
suite.addTest(unittest.makeSuite(testFindFiles))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user