Remove test suite functions

These cause nosetest to run duplicate tests.
This commit is contained in:
Nick Hall 2017-05-09 19:40:50 +01:00
parent 828c187dc3
commit 1e54cbbec3
3 changed files with 3 additions and 18 deletions

View File

@ -98,10 +98,5 @@ class RotateHandlerTest(unittest.TestCase):
l.removeHandler(rh)
def testSuite():
suite = unittest.makeSuite(RotateHandlerTest,'test')
return suite
if __name__ == '__main__':
unittest.TextTestRunner().run(testSuite())
unittest.main()

View File

@ -223,10 +223,6 @@ class CursorTest(unittest.TestCase):
pldata = set([d[1] for d in data])
self.assertEqual(placenames, pldata)
def testSuite():
suite = unittest.makeSuite(CursorTest, 'test')
return suite
if __name__ == '__main__':
unittest.TextTestRunner().run(testSuite())
unittest.main()

View File

@ -214,12 +214,6 @@ class ReferenceMapTest(GrampsDbBaseTest):
self.assertLess(with_reference_map, without_reference_map / 10,
"Reference_map should an order of magnitude faster.")
def testSuite():
suite = unittest.makeSuite(ReferenceMapTest,'test')
return suite
def perfSuite():
return unittest.makeSuite(ReferenceMapTest,'perf')
if __name__ == '__main__':
unittest.TextTestRunner().run(testSuite())
unittest.main()