def test_suite(): return unittest.TestSuite(( unittest.makeSuite(SplitterConditionSectionTests), unittest.makeSuite(SplitterSectionTests), doctest.DocFileSuite('codec.txt', 'inserter.txt', 'manipulator.txt', 'condition.txt', 'splitter.txt', 'savepoint.txt', 'csvsource.txt', 'logger.txt', setUp=sectionsSetUp, tearDown=tearDown, optionflags=doctest.NORMALIZE_WHITESPACE), doctest.DocFileSuite('constructor.txt', setUp=constructorSetUp, tearDown=tearDown, optionflags=doctest.NORMALIZE_WHITESPACE), doctest.DocFileSuite('folders.txt', setUp=foldersSetUp, tearDown=tearDown, optionflags=doctest.NORMALIZE_WHITESPACE), doctest.DocFileSuite('breakpoint.txt', setUp=pdbSetUp, tearDown=tearDown, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS), ))
def test_suite(): from zope.testing import doctest return unittest.TestSuite([ unittest.makeSuite(DateTimeTests), doctest.DocFileSuite('DateTime.txt', package='DateTime'), doctest.DocFileSuite('pytz.txt', package='DateTime'), ])
def test_suite(): tests = ( doctest.DocTestSuite('plone.memoize.compress', setUp=configurationSetUp, tearDown=tearDown, optionflags=optionflags), doctest.DocFileSuite('instance.txt', package="plone.memoize", setUp=configurationSetUp, tearDown=tearDown, optionflags=optionflags), doctest.DocFileSuite('view.txt', package="plone.memoize", setUp=configurationSetUp, tearDown=tearDown, optionflags=optionflags), doctest.DocFileSuite('forever.txt', package="plone.memoize", setUp=configurationSetUp, tearDown=tearDown, optionflags=optionflags), doctest.DocFileSuite('README.txt'), doctest.DocTestSuite('plone.memoize.request', setUp=configurationSetUp, tearDown=tearDown, optionflags=optionflags), doctest.DocTestSuite('plone.memoize.volatile'), doctest.DocTestSuite('plone.memoize.ram', setUp=configurationSetUp, tearDown=tearDown, optionflags=optionflags), ) return unittest.TestSuite(tests)
def test_suite(): checker = renormalizing.RENormalizing([ (re.compile(r"'.{6}'"), "'123456'"), # for approval codes (re.compile(r"'\d{9,10}'"), "'123456789'"), # for transaction IDs ]) remote = doctest.DocFileSuite( 'README.txt', globs=dict(SERVER_NAME='test.authorize.net', ), optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS, checker=checker, setUp=remoteSetUp, ) remote.level = 5 local = doctest.DocFileSuite( 'README.txt', globs=dict(SERVER_NAME='localhost:%s' % TEST_SERVER_PORT, ), optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS, checker=checker, setUp=localSetUp, tearDown=localTearDown, ) unit = doctest.DocTestSuite('zc.authorizedotnet.processing', optionflags=doctest.ELLIPSIS) return unittest.TestSuite((local, remote, unit))
def test_suite(): return unittest.TestSuite(( doctest.DocFileSuite("_pmc.txt", setUp=setUp, tearDown=tearDown), doctest.DocFileSuite("ZClass.txt", setUp=setUp, tearDown=tearDown), doctest.DocFileSuite("27.txt", tearDown=tearDown27, globs=dict(__file__=__file__), ), ))
def test_suite(): suite = unittest.TestSuite() suite.addTest( doctest.DocFileSuite('schema.txt', optionflags=doctest.NORMALIZE_WHITESPACE)) suite.addTest( doctest.DocFileSuite('widgets.txt', optionflags=doctest.NORMALIZE_WHITESPACE)) return suite
def test_suite(): return unittest.TestSuite(( doctest.DocTestSuite(), unittest.makeSuite(TestSomething), doctest.DocFileSuite('set_trace5.txt'), doctest.DocFileSuite('set_trace6.txt'), doctest.DocFileSuite('post_mortem5.txt'), doctest.DocFileSuite('post_mortem6.txt'), doctest.DocFileSuite('post_mortem_failure.txt'), ))
def test_suite(): return unittest.TestSuite(( doctest.DocFileSuite( 'portaltransforms.txt', setUp=portalTransformsSetUp, tearDown=tearDown), doctest.DocFileSuite( 'atschemaupdater.txt', setUp=aTSchemaUpdaterSetUp, tearDown=tearDown), doctest.DocFileSuite( 'uidupdater.txt', setUp=uidSetUp, tearDown=tearDown), doctest.DocFileSuite( 'workflowupdater.txt', setUp=workflowUpdaterSetUp, tearDown=tearDown), doctest.DocFileSuite( 'browserdefault.txt', setUp=browserDefaultSetUp, tearDown=tearDown), doctest.DocFileSuite( 'urlnormalizer.txt', setUp=urlNormalizerSetUp, tearDown=tearDown), doctest.DocFileSuite( 'criteria.txt', setUp=criteriaSetUp, tearDown=tearDown), doctest.DocFileSuite( 'mimeencapsulator.txt', setUp=mimeencapsulatorSetUp, tearDown=tearDown), doctest.DocFileSuite( 'reindexobject.txt', setUp=reindexObjectSetup, tearDown=tearDown), ))
def test_suite(): return unittest.TestSuite(( doctest.DocFileSuite('z3.txt', setUp=zc. async .monitortests.setUp, tearDown=zc. async .tests.modTearDown, optionflags=doctest.INTERPRET_FOOTNOTES), doctest.DocFileSuite('README_3a.txt', 'README_3b.txt', setUp=zope.component.testing.setUp, tearDown=tearDown, optionflags=doctest.INTERPRET_FOOTNOTES), ))
def test_suite(): return unittest.TestSuite(( doctest.DocFileSuite('message.txt', tearDown=zope.component.testing.tearDown(), optionflags=doctest.ELLIPSIS), doctest.DocFileSuite('fields.txt', tearDown=zope.component.testing.tearDown(), optionflags=doctest.ELLIPSIS), doctest.DocFileSuite('supermodel.txt', tearDown=zope.component.testing.tearDown(), optionflags=doctest.ELLIPSIS), ))
def test_suite(): suite = unittest.TestSuite() s = ZopeTestCase.FunctionalDocFileSuite('form.txt') s.layer = FunctionalLayer suite.addTest(s) suite.addTest( doctest.DocFileSuite('schema.txt', optionflags=doctest.NORMALIZE_WHITESPACE)) suite.addTest( doctest.DocFileSuite('widgets.txt', optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS)) return suite
def test_suite(): return unittest.TestSuite(( doctest.DocFileSuite( '../cross-database-references.txt', globs=dict(MyClass=MyClass), tearDown=tearDownDbs, ), doctest.DocFileSuite( '../cross-database-references.txt', globs=dict(MyClass=MyClass_w_getnewargs), tearDown=tearDownDbs, ), doctest.DocTestSuite(), ))
def test_suite(): suite = unittest.TestSuite() suite.addTests([ doctest.DocFileSuite('README.txt', package='martian', globs=globs, optionflags=optionflags), doctest.DocFileSuite('scan.txt', package='martian', optionflags=optionflags), doctest.DocFileSuite('directive.txt', package='martian', globs=globs, optionflags=optionflags), doctest.DocFileSuite('core.txt', package='martian', globs=globs, optionflags=optionflags), doctest.DocFileSuite('edgecase.txt', package='martian', globs=globs, optionflags=optionflags), doctest.DocFileSuite('scan_for_classes.txt', package='martian.tests', optionflags=optionflags), doctest.DocFileSuite('public_methods_from_class.txt', package='martian.tests', optionflags=optionflags), doctest.DocFileSuite('context.txt', package='martian', globs=globs, optionflags=optionflags), ]) return suite
def test_suite(): from zope.testing import doctest suite = unittest.TestSuite() suite.addTest(doctest.DocFileSuite( 'README.txt', setUp=testing.setUp, tearDown=tearDown, optionflags=doctest.NORMALIZE_WHITESPACE)) suite.addTest(doctest.DocFileSuite( 'xpdl.txt', setUp=setUp, tearDown=tearDown, optionflags=doctest.NORMALIZE_WHITESPACE)) suite.addTest(doctest.DocTestSuite( setUp=testing.setUp, tearDown=testing.tearDown)) return suite
def test_suite(): return unittest.TestSuite(( doctest.DocFileSuite('README.txt', setUp=setUp, tearDown=tearDown, globs={'pprint': doctestunit.pprint}, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS), doctest.DocFileSuite('grades.txt', setUp=setUp, tearDown=tearDown, globs={'pprint': doctestunit.pprint}, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS), ))
def test_suite(): return unittest.TestSuite((doctest.DocFileSuite( '../paste.txt', checker=renormalizing.RENormalizing([ (re.compile('at 0x[0-9a-f]+'), 'at <SOME ADDRESS>'), ]), ), ))
def test_suite(): return unittest.TestSuite(( doctest.DocFileSuite("interface.txt", package = "org.ict_ok.components.interface", setUp=setUp ) #, ))
def test_suite(): return unittest.TestSuite(( doctest.DocTestSuite('zope.container.constraints'), doctest.DocFileSuite('../constraints.txt', setUp=setUp, tearDown=tearDown), ))
def test_suite(): return unittest.TestSuite([ doctest.DocTestSuite('collective.dancing.channel'), doctest.DocTestSuite('collective.dancing.composer'), doctest.DocTestSuite('collective.dancing.utils'), doctest.DocFileSuite('transform.txt'), ztc.ZopeDocFileSuite( 'channel.txt', test_class=ptc.PloneTestCase, ), ztc.ZopeDocFileSuite( 'collector.txt', test_class=ptc.PloneTestCase, ), ztc.ZopeDocFileSuite( 'composer.txt', test_class=DancingTestCase, ), ztc.ZopeDocFileSuite( 'browser.txt', test_class=DancingTestCase, encoding='utf-8', ), ztc.ZopeDocFileSuite( 'portlets.txt', test_class=DancingTestCase, ), doctest.DocTestSuite( 'collective.dancing.composer', setUp=testing.setUp, tearDown=testing.tearDown, ), ])
def test_suite(): FunkTest.layer = AppAuthenticationLayer principalfolder = functional.FunctionalDocFileSuite('principalfolder.txt', checker=checker) principalfolder.layer = AppAuthenticationLayer groupfolder = functional.FunctionalDocFileSuite('groupfolder.txt', checker=checker) groupfolder.layer = AppAuthenticationLayer pau_prefix_and_searching = functional.FunctionalDocFileSuite( 'pau_prefix_and_searching.txt', checker=checker) pau_prefix_and_searching.layer = AppAuthenticationLayer group_searching_with_empty_string = functional.FunctionalDocFileSuite( 'group_searching_with_empty_string.txt', checker=checker) group_searching_with_empty_string.layer = AppAuthenticationLayer special_groups = functional.FunctionalDocFileSuite('special-groups.txt', checker=checker) special_groups.layer = AppAuthenticationLayer issue663 = functional.FunctionalDocFileSuite('issue663.txt') issue663.layer = AppAuthenticationLayer return unittest.TestSuite(( principalfolder, groupfolder, pau_prefix_and_searching, group_searching_with_empty_string, special_groups, unittest.makeSuite(FunkTest), issue663, doctest.DocFileSuite('schemasearch.txt'), ))
def test_suite(): return unittest.TestSuite(( unittest.makeSuite(TestSchemaDirectives), doctest.DocFileSuite('schema.txt', setUp=zope.component.testing.setUp, tearDown=zope.component.testing.tearDown), ))
def test_suite(): return unittest.TestSuite( (doctest.DocFileSuite('monitor.txt', 'monitordb.txt', setUp=setUp, tearDown=zc. async .tests.modTearDown, optionflags=doctest.INTERPRET_FOOTNOTES), ))
def suiteFromPackage(name): files = resource_listdir(__name__, name) suite = unittest.TestSuite() for filename in files: if filename.endswith('_fixture.py'): continue if filename == '__init__.py': continue test = None if filename.endswith('.py'): dottedname = 'grokcore.view.tests.%s.%s' % (name, filename[:-3]) test = doctest.DocTestSuite(dottedname, setUp=setUp, tearDown=cleanUp, checker=checker, optionflags=optionflags) elif filename.endswith('.txt'): test = doctest.DocFileSuite(os.path.join(name, filename), optionflags=optionflags, setUp=setUp, tearDown=cleanUp, globs={'grok': grokcore.view}) if test is not None: suite.addTest(test) return suite
def test_suite(): readme_txt = doctest.DocFileSuite('README.txt') readme_txt.layer = testing_zcml_layer return unittest.TestSuite([ readme_txt, ])
def test_suite(): return unittest.TestSuite(( doctest.DocFileSuite( 'workflow.txt', setUp=workflowSetUp, tearDown=testing.tearDown, ), ))
def uSuite(testfile, level=None): suite = doctest.DocFileSuite(testfile, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS) if level is not None: suite.level = level return suite
def test_suite(): suite = unittest.TestSuite() suite.addTests([ doctest.DocFileSuite('./form.txt', setUp=setUp, globs=globs, tearDown=tearDown, optionflags=optionflags), doctest.DocFileSuite('./widget.txt', setUp=widgetSetUp, globs=globs, tearDown=tearDown, optionflags=optionflags), ]) return suite
def test_suite(): return unittest.TestSuite( doctest.DocFileSuite('README.txt', setUp=setUp, tearDown=zc.buildout.testing.buildoutTearDown, optionflags=doctest.ELLIPSIS, checker=checker), )
def suiteFromPackage(name): files = resource_listdir(__name__, name) suite = unittest.TestSuite() getRootFolder = FunctionalLayer.getRootFolder globs = dict(http=http, getRootFolder=getRootFolder) optionflags = (doctest.ELLIPSIS + doctest.NORMALIZE_WHITESPACE + doctest.REPORT_NDIFF) for filename in files: if filename == '__init__.py': continue test = None if filename.endswith('.py'): dottedname = 'grokcore.view.ftests.%s.%s' % (name, filename[:-3]) test = doctest.DocTestSuite(dottedname, checker=checker, extraglobs=globs, optionflags=optionflags) test.layer = FunctionalLayer elif filename.endswith('.txt'): test = doctest.DocFileSuite(os.path.join(name, filename), optionflags=optionflags, globs=globs) test.layer = FunctionalLayer if test is not None: suite.addTest(test) return suite
def test_suite(): return unittest.TestSuite(( doctest.DocTestSuite('zope.testing.renormalizing'), doctest.DocFileSuite('formparser.txt'), doctest.DocTestSuite('zope.testing.loggingsupport'), testrunner.test_suite(), ))