def test_suite(): suite = unittest.TestSuite() if __name__ not in ('__main__', 'p4a.ploneaudio.tests.test_unit'): return suite suite.addTest(doctestunit.DocTestSuite('p4a.ploneaudio')) suite.addTest(doctestunit.DocTestSuite('p4a.ploneaudio.content')) suite.addTest( doctestunit.DocFileSuite('atct.txt', package='p4a.ploneaudio', optionflags=doctest.ELLIPSIS, setUp=testing.setUp, tearDown=testing.tearDown)) suite.addTest( doctestunit.DocFileSuite('indexing.txt', package='p4a.ploneaudio', optionflags=doctest.ELLIPSIS)) suite.addTest( doctestunit.DocFileSuite('sitesetup.txt', package='p4a.ploneaudio', optionflags=doctest.ELLIPSIS)) suite.addTest( doctestunit.DocFileSuite('syndication.txt', package='p4a.ploneaudio', optionflags=doctest.ELLIPSIS)) return suite
def test_suite(): return unittest.TestSuite(( doctestunit.DocFileSuite('feedconsuming.txt', package='Products.feedfeeder.doc'), doctestunit.DocFileSuite('extendeddatetime.txt', package='Products.feedfeeder.doc'), doctestunit.DocTestSuite( module='Products.feedfeeder.browser.feeditem'), ))
def test_suite(): return unittest.TestSuite([ doctestunit.DocTestSuite(module='Products.Poi.browser.response', optionflags=OPTIONFLAGS), doctestunit.DocFileSuite('responses.txt', package='Products.Poi.tests', optionflags=OPTIONFLAGS), doctestunit.DocFileSuite('linkdetection.txt', package='Products.Poi.tests', optionflags=OPTIONFLAGS), ])
def test_suite(): return unittest.TestSuite([ # Unit tests doctestunit.DocFileSuite('assignment.txt', package='plone.contentratings', setUp=testing.setUp, tearDown=testing.tearDown), doctestunit.DocFileSuite('category.txt', package='plone.contentratings', setUp=setUpCategoryTests, tearDown=testing.tearDown), ])
def test_suite(): return unittest.TestSuite(( doctestunit.DocFileSuite('formlib.txt', package='plone.app.form', setUp=testing.setUp, tearDown=testing.tearDown), ))
def test_suite(): doctests = ( "forms/readme.txt", "downloaddocument.txt", #!+DOWNLOAD_DOCUMENT(mb, May-2012) "utils/misc.py", "utils/report_tools.py", ) docfiles = ("bungeni.ui.forms.forms", ) globs = dict(interface=interface, component=component) test_suites = [] for filename in doctests: test_suite = doctestunit.DocFileSuite( filename, setUp=setUp, tearDown=tearDown, globs=globs, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS) test_suites.append(test_suite) for filename in docfiles: test_suite = doctestunit.DocTestSuite( filename, setUp=setUp, tearDown=tearDown, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS) test_suites.append(test_suite) test_suites.append(forms.test_dates.test_suite()) return unittest.TestSuite(test_suites)
def test_suite(): from zope.testing import doctestunit from zope.component import testing from Testing import ZopeTestCase as ztc return unittest.TestSuite([ unittest.TestSuite([HrefProcessorTestCase]), # Unit tests for your API doctestunit.DocFileSuite('README.txt', package='vs.uidfixer', setUp=testing.setUp, tearDown=testing.tearDown), #doctestunit.DocTestSuite( # module='vs.uidfixer.mymodule', # setUp=testing.setUp, tearDown=testing.tearDown), # Integration tests that use ZopeTestCase #ztc.ZopeDocFileSuite( # 'README.txt', package='vs.uidfixer', # setUp=testing.setUp, tearDown=testing.tearDown), #ztc.FunctionalDocFileSuite( # 'browser.txt', package='vs.uidfixer'), ])
def test_suite(): doctests = ('forms/readme.txt', ) docfiles = ("bungeni.ui.calendar.utils", "bungeni.ui.forms.forms") globs = dict(interface=interface, component=component) test_suites = [] for filename in doctests: test_suite = doctestunit.DocFileSuite( filename, setUp=setUp, tearDown=tearDown, globs=globs, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS) test_suites.append(test_suite) for filename in docfiles: test_suite = doctestunit.DocTestSuite( filename, setUp=setUp, tearDown=tearDown, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS) test_suites.append(test_suite) test_suites.append(forms.test_dates.test_suite()) return unittest.TestSuite(test_suites)
def test_suite(): return unittest.TestSuite([ doctestunit.DocFileSuite('README.txt', package='plone.indexer', setUp=testing.setUp, tearDown=testing.tearDown), unittest.makeSuite(TestWrapperUpdate), ])
def test_suite(): return unittest.TestSuite([ doctestunit.DocFileSuite( 'registry.rst', package='plone.registry', optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS, setUp=setUp, tearDown=testing.tearDown), doctestunit.DocFileSuite( 'events.rst', package='plone.registry', optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS, setUp=setUp, tearDown=testing.tearDown), doctestunit.DocFileSuite( 'field.rst', package='plone.registry', optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS, setUp=setUp, tearDown=testing.tearDown), unittest.makeSuite(TestBugs), unittest.makeSuite(TestMigration), ])
def test_suite(): return unittest.TestSuite([ # Unit tests doctestunit.DocFileSuite('static.txt', package='Products.CNXMLTransforms.tests', setUp=testing.setUp, tearDown=testing.tearDown), ])
def test_suite(): return unittest.TestSuite([ # Unit tests doctestunit.DocFileSuite('static.txt', package='Products.RhaptosPrint.tests', setUp=testing.setUp, tearDown=testing.tearDown), ])
def test_suite(): return unittest.TestSuite(( doctestunit.DocFileSuite('aggregator.txt', package='contentratings.browser', setUp=setUpViewTests, tearDown=tearDown, ), doctestunit.DocTestSuite('contentratings.browser.traverser', setUp=setUpViewTests, tearDown=tearDown,), doctestunit.DocTestSuite('contentratings.browser.utils', setUp=setUp, tearDown=tearDown,), doctestunit.DocFileSuite('views.txt', package='contentratings.browser', setUp=setUpViewTests, tearDown=tearDown,), ))
def test_suite(): from bungeni.core.app import BungeniApp # NOTE: to run an individual test txt file from the commandline: # # $ bin/test -s bungeni.core -t file.txt # doctests = ('audit.txt', 'version.txt', 'odf.txt', 'workflows/question.txt', 'workflows/motion.txt', 'workflows/bill.txt', 'workflows/transitioncron.txt', ) docfiles = ("bungeni.core.transformation",) # set up global symbols for doctests today = datetime.date.today() globs = dict( interface=interface, component=component, datetime=datetime, os=os, copy=copy, app=BungeniApp(), today=today, yesterday=today-datetime.timedelta(1), daybeforeyesterday=today-datetime.timedelta(2), tomorrow=today+datetime.timedelta(1), dayat=today+datetime.timedelta(2), path=os.path.dirname(__file__), ) test_suites = [] for filename in doctests: test_suite = doctestunit.DocFileSuite( os.path.join(os.path.pardir, filename), setUp = setUp, tearDown = tearDown, globs = globs, optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) test_suites.append(test_suite) for filename in docfiles: test_suite = doctestunit.DocTestSuite( filename, setUp=setUp, tearDown=tearDown, optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) test_suites.append(test_suite) return unittest.TestSuite( test_suites )
def test_suite(): return unittest.TestSuite([ # Unit tests for your API doctestunit.DocFileSuite( 'README.txt', package='redturtle.entiterritoriali', optionflags=doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE, setUp=setUp, tearDown=testing.tearDown), ])
def test_suite(): doctests = ('readme.txt', ) test_suites = [] for filename in doctests: test_suite = doctestunit.DocFileSuite( filename, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS) test_suites.append(test_suite) return unittest.TestSuite(test_suites)
def test_suite(): from zope.testing import doctest, doctestunit return unittest.TestSuite(( doctestunit.DocFileSuite('../adapter.txt', '../human.txt', '../human.ru.txt', 'foodforthought.txt', globs={'__name__': '__main__'}), doctest.DocTestSuite(), ))
def test_suite(): return unittest.TestSuite([ # Unit tests doctestunit.DocFileSuite( 'static.txt', package='Products.CatalogMemberDataTool.tests', setUp=testing.setUp, tearDown=testing.tearDown), ])
def test_suite(): return unittest.TestSuite([ # Unit tests for your API doctestunit.DocFileSuite('README.md', package='z3c.rest_publisher', setUp=testing.setUp, tearDown=testing.tearDown), #TODO ])
def test_suite(): return unittest.TestSuite([ # Unit tests for your API doctestunit.DocFileSuite('README.txt', package='bibliograph.core', setUp=testing.setUp, tearDown=testing.tearDown), doctestunit.DocTestSuite('bibliograph.core.utils', optionflags=doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE, globs=dict(DummyEntry=DummyEntry)), unittest.makeSuite(VocabularyTestCase), ])
def test_suite(): suites = unittest.TestSuite() # run the unit tests in the modules for mod in modules: mod = base_modulestring + mod suite = DocTestSuite(module=mod, optionflags=OPTIONFLAGS) suites.addTest(suite) # run the unit tests which are doctests for doc in list_doctests(): suites.addTest( doctestunit.DocFileSuite(os.path.basename(doc), package='Products.eXtremeManagement.doc', optionflags=OPTIONFLAGS)) return suites
def test_suite(): doctests = ('role.txt', 'permission.txt') globs = dict(Session=Session, Allow=Allow, Deny=Deny, rdb=rdb, transaction=transaction, orm=orm) return unittest.TestSuite((doctestunit.DocFileSuite( filename, setUp=setUp, tearDown=tearDown, globs=globs, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS) for filename in doctests))
def test_suite(): suite = unittest.TestSuite(( doctestunit.DocTestSuite('p4a.plonevideo.atct'), doctestunit.DocTestSuite('p4a.plonevideo.content'), doctestunit.DocTestSuite('p4a.plonevideo.sitesetup', optionflags=doctest.ELLIPSIS), doctestunit.DocFileSuite('p4a-plonevideo.txt', package="p4a.plonevideo", setUp=testing.setUp, tearDown=testing.tearDown, optionflags=doctest.ELLIPSIS), )) if has_fatsyndication_support(): suite.addTest(doctestunit.DocTestSuite('p4a.plonevideo.syndication')) return suite
def test_suite(): doctests = ('readme.txt', 'settings.txt', 'resourcebooking.txt', 'venue.txt') globs = dict(interface=interface, component=component) test_suites = [] for filename in doctests: test_suite = doctestunit.DocFileSuite( filename, setUp=setUp, tearDown=tearDown, globs=globs, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS) test_suites.append(test_suite) test_suites.append(assignment_tests()) return unittest.TestSuite(test_suites)
def assignment_tests(): import assignment def _setUp(test): setUp(test) ztapi.provideAdapter( (interfaces.IBungeniContent, interfaces.IBungeniGroup), IAssignmentFactory, assignment.GroupAssignmentFactory) ztapi.provideAdapter(interfaces.IBungeniContent, IContentAssignments, assignment.ContentAssignments) ztapi.provideAdapter(interfaces.IBungeniGroup, IContextAssignments, assignment.GroupContextAssignments) return doctestunit.DocFileSuite('assignment.txt', setUp=_setUp, tearDown=tearDown, optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS)
def test_suite(): return unittest.TestSuite([ # Unit tests for your API doctestunit.DocFileSuite('README.txt', package='collective.gcalendar', setUp=testing.setUp, tearDown=testing.tearDown), #doctestunit.DocTestSuite( # module='collective.gcalendar.mymodule', # setUp=testing.setUp, tearDown=testing.tearDown), # Integration tests that use ZopeTestCase #ztc.ZopeDocFileSuite( # 'README.txt', package='collective.gcalendar', # setUp=testing.setUp, tearDown=testing.tearDown), #ztc.FunctionalDocFileSuite( # 'browser.txt', package='collective.gcalendar'), ])
def test_suite(): return unittest.TestSuite([ # Unit tests doctestunit.DocFileSuite('README.txt', package='d9t.gis', setUp=testing.setUp, tearDown=testing.tearDown), #doctestunit.DocTestSuite( # module='d9t.gis.mymodule', # setUp=testing.setUp, tearDown=testing.tearDown), # Integration tests that use PloneTestCase #ztc.ZopeDocFileSuite( # 'README.txt', package='d9t.gis', # test_class=TestCase), #ztc.FunctionalDocFileSuite( # 'browser.txt', package='d9t.gis', # test_class=TestCase), ])
def test_suite(): suite = unittest.TestSuite([ # Unit tests doctestunit.DocFileSuite('tests/restapi.txt', package='d3kod.restapi', setUp=testing.setUp, tearDown=testing.tearDown), #doctestunit.DocTestSuite( # module='d3kod.restapi.mymodule', # setUp=testing.setUp, tearDown=testing.tearDown), # Integration tests that use PloneTestCase #ztc.ZopeDocFileSuite( # 'README.txt', package='d3kod.restapi', # test_class=TestCase), ztc.FunctionalDocFileSuite('tests/get.rst', package='d3kod.restapi', optionflags=optionflags, test_class=ptc.FunctionalTestCase), ]) suite.layer = d3kodtesting.layer return suite
def test_suite(): return unittest.TestSuite([ # Unit tests doctestunit.DocFileSuite( 'static.txt', package='Products.RhaptosCollection.tests', setUp=testing.setUp, tearDown=testing.tearDown), #doctestunit.DocTestSuite( # module='Products.RhaptosCollection.mymodule', # setUp=testing.setUp, tearDown=testing.tearDown), # FIXME # Integration tests that use PloneTestCase #ztc.ZopeDocFileSuite( # 'profile.txt', package='Products.RhaptosCollection.tests', # test_class=TestCase), #ztc.FunctionalDocFileSuite( # 'browser.txt', package='Products.RhaptosCollection', # test_class=TestCase), ])
def test_suite(): return unittest.TestSuite([ doctestunit.DocFileSuite('validators.txt', package='Products.DataGridField.tests', optionflags=OPTIONFLAGS), ])