本文整理汇总了Python中unittest.makeSuite函数的典型用法代码示例。如果您正苦于以下问题:Python makeSuite函数的具体用法?Python makeSuite怎么用?Python makeSuite使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了makeSuite函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: suite
def suite():
suite = unittest.TestSuite()
suite.addTests(unittest.makeSuite(ReviewSearchApiTest))
suite.addTests(unittest.makeSuite(PhoneApiTest))
suite.addTests(unittest.makeSuite(NeighborhoodApiTest))
return suite
示例2: test_suite
def test_suite():
from unittest import TestSuite, makeSuite
suite = TestSuite()
suite.addTest(makeSuite(TestHeaderSet))
suite.addTest(makeSuite(TestHeaderSetMethods))
suite.addTest(makeSuite(TestHeaderSetOld))
return suite
示例3: test_suite
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(BlockTestCase))
suite.addTest(unittest.makeSuite(ReferenceBlockTestCase))
suite.addTest(unittest.makeSuite(TextBlockTestCase))
suite.addTest(unittest.makeSuite(BlockSlotTestCase))
return suite
示例4: test_suite
def test_suite():
return unittest.TestSuite((
unittest.makeSuite(NegotiatorBaseTest),
unittest.makeSuite(NegotiatorTest),
DocFileSuite('README.txt',
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS),
))
示例5: suite
def suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(ConfigurableTicketWorkflowTestCase))
suite.addTest(unittest.makeSuite(ResetActionTestCase))
suite.addTest(unittest.makeSuite(SetOwnerAttributeTestCase))
suite.addTest(unittest.makeSuite(RestrictOwnerTestCase))
return suite
示例6: test_suite
def test_suite():
return unittest.TestSuite((
unittest.makeSuite(MailHostExportConfiguratorTests),
unittest.makeSuite(MailHostImportConfiguratorTests),
unittest.makeSuite(Test_exportMailHost),
unittest.makeSuite(Test_importMailHost),
))
示例7: suite
def suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(ExtensionsTestCase))
suite.addTest(unittest.makeSuite(InternationalizationTestCase))
suite.addTest(unittest.makeSuite(NewstyleInternationalizationTestCase))
suite.addTest(unittest.makeSuite(AutoEscapeTestCase))
return suite
示例8: suite
def suite():
suite = unittest.TestSuite()
if has_svn:
tests = [(NormalTests, ''),
(ScopedTests, u'/tête'),
(RecentPathScopedTests, u'/tête/dir1'),
(NonSelfContainedScopedTests, '/tags/v1'),
(AnotherNonSelfContainedScopedTests, '/branches'),
]
skipped = {
'SvnCachedRepositoryNormalTests': [
'test_changeset_repos_creation',
],
'SvnCachedRepositoryScopedTests': [
'test_changeset_repos_creation',
'test_rev_navigation',
],
}
for test, scope in tests:
tc = new.classobj('SubversionRepository' + test.__name__,
(SubversionRepositoryTestCase, test),
{'path': REPOS_PATH + scope})
suite.addTest(unittest.makeSuite(
tc, 'test', suiteClass=SubversionRepositoryTestSetup))
tc = new.classobj('SvnCachedRepository' + test.__name__,
(SvnCachedRepositoryTestCase, test),
{'path': REPOS_PATH + scope})
for skip in skipped.get(tc.__name__, []):
setattr(tc, skip, lambda self: None) # no skip, so we cheat...
suite.addTest(unittest.makeSuite(
tc, 'test', suiteClass=SubversionRepositoryTestSetup))
else:
print "SKIP: versioncontrol/tests/svn_fs.py (no svn bindings)"
return suite
示例9: test_suite
def test_suite():
from unittest import TestSuite, makeSuite
suite = TestSuite()
suite.addTest(makeSuite(TestSSOLogin))
suite.addTest(makeSuite(TestSSOLoginIframe))
return suite
示例10: suite
def suite():
return unittest.TestSuite(
(
unittest.makeSuite(Case002_Direct_Memory_TestCase),
unittest.makeSuite(Case002_Direct_MySQL_TestCase)
)
)
示例11: get_test_suite
def get_test_suite():
ts=unittest.TestSuite([unittest.makeSuite(TestKalman),
unittest.makeSuite(TestAutogeneratedData),
#unittest.makeSuite(TestLotsOfAutogeneratedData),
unittest.makeSuite(TestStats),
])
return ts
示例12: test_suite
def test_suite():
from unittest import TestSuite, makeSuite
suite = TestSuite()
suite.addTest(makeSuite(TestZopeTestCase))
suite.addTest(makeSuite(TestPlainUserFolder))
suite.addTest(makeSuite(TestWrappingUserFolder))
return suite
示例13: suite
def suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(DataInputGenericTest))
suite.addTest(unittest.makeSuite(DataInputAutoKeyTest))
suite.addTest(unittest.makeSuite(DataInputUseAutoKeyTest))
# add future test suites here
return suite
示例14: suite
def suite():
""" This defines all the tests of a module"""
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(Test_PotentialEvapotranspiration))
suite.addTest(unittest.makeSuite(Test_WaterLimitedEvapotranspiration1))
suite.addTest(unittest.makeSuite(Test_WaterLimitedEvapotranspiration2))
return suite
示例15: SuiteTest
def SuiteTest():
suite = test.TestSuite()
suite.addTest(test.makeSuite(TesteTV))
suite.addTest(test.makeSuite(TesteSOM))
suite.addTest(test.makeSuite(TesteResidencia))
suite.addTest(test.makeSuite(TesteComodo))
return suite