Simplified construction of the test suite.
This commit is contained in:
parent
de830ca4eb
commit
62c62438ff
|
@ -576,27 +576,29 @@ class TestCopyingNested(TestCopying):
|
||||||
|
|
||||||
def makeAllTests():
|
def makeAllTests():
|
||||||
suite = unittest.TestSuite()
|
suite = unittest.TestSuite()
|
||||||
suite.addTest(unittest.makeSuite(TestSetOfSets))
|
for klass in (TestSetOfSets,
|
||||||
suite.addTest(unittest.makeSuite(TestBasicOpsEmpty))
|
TestBasicOpsEmpty,
|
||||||
suite.addTest(unittest.makeSuite(TestBasicOpsSingleton))
|
TestBasicOpsSingleton,
|
||||||
suite.addTest(unittest.makeSuite(TestBasicOpsTuple))
|
TestBasicOpsTuple,
|
||||||
suite.addTest(unittest.makeSuite(TestBasicOpsTriple))
|
TestBasicOpsTriple,
|
||||||
suite.addTest(unittest.makeSuite(TestBinaryOps))
|
TestBinaryOps,
|
||||||
suite.addTest(unittest.makeSuite(TestUpdateOps))
|
TestUpdateOps,
|
||||||
suite.addTest(unittest.makeSuite(TestMutate))
|
TestMutate,
|
||||||
suite.addTest(unittest.makeSuite(TestSubsetEqualEmpty))
|
TestSubsetEqualEmpty,
|
||||||
suite.addTest(unittest.makeSuite(TestSubsetEqualNonEmpty))
|
TestSubsetEqualNonEmpty,
|
||||||
suite.addTest(unittest.makeSuite(TestSubsetEmptyNonEmpty))
|
TestSubsetEmptyNonEmpty,
|
||||||
suite.addTest(unittest.makeSuite(TestSubsetPartial))
|
TestSubsetPartial,
|
||||||
suite.addTest(unittest.makeSuite(TestSubsetNonOverlap))
|
TestSubsetNonOverlap,
|
||||||
suite.addTest(unittest.makeSuite(TestOnlySetsNumeric))
|
TestOnlySetsNumeric,
|
||||||
suite.addTest(unittest.makeSuite(TestOnlySetsDict))
|
TestOnlySetsDict,
|
||||||
suite.addTest(unittest.makeSuite(TestOnlySetsOperator))
|
TestOnlySetsOperator,
|
||||||
suite.addTest(unittest.makeSuite(TestCopyingEmpty))
|
TestCopyingEmpty,
|
||||||
suite.addTest(unittest.makeSuite(TestCopyingSingleton))
|
TestCopyingSingleton,
|
||||||
suite.addTest(unittest.makeSuite(TestCopyingTriple))
|
TestCopyingTriple,
|
||||||
suite.addTest(unittest.makeSuite(TestCopyingTuple))
|
TestCopyingTuple,
|
||||||
suite.addTest(unittest.makeSuite(TestCopyingNested))
|
TestCopyingNested,
|
||||||
|
):
|
||||||
|
suite.addTest(unittest.makeSuite(klass))
|
||||||
return suite
|
return suite
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue