本文整理汇总了Python中unittest.makeSuite函数的典型用法代码示例。如果您正苦于以下问题:Python makeSuite函数的具体用法?Python makeSuite怎么用?Python makeSuite使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了makeSuite函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
开发者ID:adamhadani,项目名称:python-yelp,代码行数:7,代码来源:test_yelp.py
示例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
开发者ID:kroman0,项目名称:products,代码行数:7,代码来源:test_header_set.py
示例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
开发者ID:silvacms,项目名称:silva.core.contentlayout,代码行数:7,代码来源:test_blocks.py
示例4: test_suite
def test_suite():
return unittest.TestSuite((
unittest.makeSuite(NegotiatorBaseTest),
unittest.makeSuite(NegotiatorTest),
DocFileSuite('README.txt',
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS),
))
开发者ID:jean,项目名称:z3c.language.negotiator,代码行数:7,代码来源:tests.py
示例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
开发者ID:pkdevbox,项目名称:trac,代码行数:7,代码来源:default_workflow.py
示例6: test_suite
def test_suite():
return unittest.TestSuite((
unittest.makeSuite(MailHostExportConfiguratorTests),
unittest.makeSuite(MailHostImportConfiguratorTests),
unittest.makeSuite(Test_exportMailHost),
unittest.makeSuite(Test_importMailHost),
))
开发者ID:goschtl,项目名称:zope,代码行数:7,代码来源:test_mailhost.py
示例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
开发者ID:1ncnspcuous,项目名称:WebPutty,代码行数:7,代码来源:ext.py
示例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
开发者ID:wiraqutra,项目名称:photrackjp,代码行数:34,代码来源:svn_fs.py
示例9: test_suite
def test_suite():
from unittest import TestSuite, makeSuite
suite = TestSuite()
suite.addTest(makeSuite(TestSSOLogin))
suite.addTest(makeSuite(TestSSOLoginIframe))
return suite
开发者ID:rochecompaan,项目名称:Products.CMFPlone,代码行数:7,代码来源:testSSOLogin.py
示例10: suite
def suite():
return unittest.TestSuite(
(
unittest.makeSuite(Case002_Direct_Memory_TestCase),
unittest.makeSuite(Case002_Direct_MySQL_TestCase)
)
)
开发者ID:gmartinvela,项目名称:weblabdeusto,代码行数:7,代码来源:test_global_test.py
示例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
开发者ID:astraw,项目名称:adskalman,代码行数:7,代码来源:tests.py
示例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
开发者ID:wpjunior,项目名称:proled,代码行数:7,代码来源:testZopeTestCase.py
示例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
开发者ID:3009420,项目名称:mgipython,代码行数:7,代码来源:datainput_tests.py
示例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
开发者ID:ajwdewit,项目名称:pcse,代码行数:7,代码来源:test_evapotranspiration.py
示例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
开发者ID:felipelindemberg,项目名称:ControleMultimidiaUniversal,代码行数:7,代码来源:runTests.py
示例16: suite
def suite() -> unittest.TestSuite:
return unittest.TestSuite([
unittest.makeSuite(TestEqualsPathRelativity),
unittest.makeSuite(TestNotEqualsPathRelativity),
TestEqualsPathRelativityVariants(),
unittest.makeSuite(TestNotEqualsPathRelativityVariants),
])
开发者ID:emilkarlen,项目名称:exactly,代码行数:7,代码来源:path_relativity.py
示例17: test_suite
def test_suite():
from doctest import DocTestSuite
suite = unittest.TestSuite()
suite.addTest(DocTestSuite('zope.pagetemplate.engine'))
suite.addTest(unittest.makeSuite(EngineTests))
suite.addTest(unittest.makeSuite(ZopePythonExprTests))
return suite
开发者ID:Andyvs,项目名称:TrackMonthlyExpenses,代码行数:7,代码来源:test_engine.py
示例18: suite
def suite():
utilsTests.init()
suites = []
suites += unittest.makeSuite(SourceToDiaSourceTestCase)
suites += unittest.makeSuite(utilsTests.MemoryTestCase)
return unittest.TestSuite(suites)
开发者ID:RayPlante,项目名称:DMS.afw,代码行数:7,代码来源:sourceToDiaSource.py
示例19: suite
def suite():
suite1 = unittest.makeSuite(TestFromOpenURL, 'test')
suite2 = unittest.makeSuite(TestToOpenURL, 'test')
suite3 = unittest.makeSuite(TestFromDict, 'test')
suite4 = unittest.makeSuite(TestThesisToOpenURL, 'test')
all = unittest.TestSuite((suite1, suite2, suite3, suite4))
return all
开发者ID:birkin,项目名称:bibjsontools_bul,代码行数:7,代码来源:openurl.py
示例20: suite
def suite():
return unittest.TestSuite(
(
unittest.makeSuite(TemporalInformationRetrieverTestCase),
unittest.makeSuite(IterationFailerTemporalInformationRetrieverTestCase),
)
)
开发者ID:JamesHyunKim,项目名称:weblabdeusto,代码行数:7,代码来源:test_data_retriever.py
注:本文中的unittest.makeSuite函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论