Exemplo n.º 1
0
def test_suite():
    return unittest.TestSuite([

        # Unit tests
        #doctestunit.DocFileSuite(
        #    'README.txt', package='enslyon.opdsshowroom',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        #doctestunit.DocTestSuite(
        #    module='enslyon.opdsshowroom.mymodule',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite('INTEGRATION.txt',
                             package='enslyon.opdsshowroom',
                             optionflags=OPTION_FLAGS,
                             test_class=TestCase),

        # -*- extra stuff goes here -*-

        # Integration tests for LibraryShowroom
        ztc.ZopeDocFileSuite('LibraryShowroom.txt',
                             package='enslyon.opdsshowroom',
                             optionflags=OPTION_FLAGS,
                             test_class=TestCase),
    ])
Exemplo n.º 2
0
def test_suite():
    return unittest.TestSuite([

        # Unit tests
        #doctestunit.DocFileSuite(
        #    'README.txt', package='collective.abovecontentportlets',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        #doctestunit.DocTestSuite(
        #    module='collective.abovecontentportlets.mymodule',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite('INTEGRATION.txt',
                             package='collective.abovecontentportlets',
                             optionflags=OPTION_FLAGS,
                             test_class=TestCase),

        # -*- extra stuff goes here -*-

        # Integration tests for StreetView
        ztc.ZopeDocFileSuite('StreetView.txt',
                             package='collective.abovecontentportlets',
                             optionflags=OPTION_FLAGS,
                             test_class=TestCase),
    ])
Exemplo n.º 3
0
def test_suite():
    return unittest.TestSuite([

        # Unit tests
        #doctestunit.DocFileSuite(
        #    'README.txt', package='mingtak.sociallink',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        #doctestunit.DocTestSuite(
        #    module='mingtak.sociallink.mymodule',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite('INTEGRATION.txt',
                             package='mingtak.sociallink',
                             optionflags=OPTION_FLAGS,
                             test_class=TestCase),

        # -*- extra stuff goes here -*-

        # Integration tests for SocialNetwork
        ztc.ZopeDocFileSuite('SocialNetwork.txt',
                             package='mingtak.sociallink',
                             optionflags=OPTION_FLAGS,
                             test_class=TestCase),
    ])
Exemplo n.º 4
0
def test_suite():
    return unittest.TestSuite([

        # Unit tests
        #doctestunit.DocFileSuite(
        #    'README.txt', package='infoporto.FIAIP',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        #doctestunit.DocTestSuite(
        #    module='infoporto.FIAIP.mymodule',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite('INTEGRATION.txt',
                             package='infoporto.FIAIP',
                             optionflags=OPTION_FLAGS,
                             test_class=TestCase),

        # -*- extra stuff goes here -*-

        # Integration tests for Property
        ztc.ZopeDocFileSuite('Property.txt',
                             package='infoporto.FIAIP',
                             optionflags=OPTION_FLAGS,
                             test_class=TestCase),
    ])
Exemplo n.º 5
0
def test_suite():
    return unittest.TestSuite([

        # Demonstrate the main content types
        ztc.ZopeDocFileSuite('README.txt',
                             package='Products.UWOshMusicRecruiting.tests',
                             test_class=PloneTestCase.FunctionalTestCase,
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
                             | doctest.NORMALIZE_WHITESPACE
                             | doctest.ELLIPSIS),
        ztc.ZopeDocFileSuite('CREATE_VISIT.txt',
                             package='Products.UWOshMusicRecruiting.tests',
                             test_class=PloneTestCase.FunctionalTestCase,
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
                             | doctest.NORMALIZE_WHITESPACE
                             | doctest.ELLIPSIS),
        ztc.ZopeDocFileSuite('TEST_VIEWS.txt',
                             package='Products.UWOshMusicRecruiting.tests',
                             test_class=PloneTestCase.FunctionalTestCase,
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
                             | doctest.NORMALIZE_WHITESPACE
                             | doctest.ELLIPSIS),
        ztc.ZopeDocFileSuite('EDIT_VISIT.txt',
                             package='Products.UWOshMusicRecruiting.tests',
                             test_class=PloneTestCase.FunctionalTestCase,
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
                             | doctest.NORMALIZE_WHITESPACE
                             | doctest.ELLIPSIS),
    ])
Exemplo n.º 6
0
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,
        ),
    ])
Exemplo n.º 7
0
def test_suite():
    return unittest.TestSuite([

        # Unit tests
        #doctestunit.DocFileSuite(
        #    'README.txt', package='leam.taz',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        #doctestunit.DocTestSuite(
        #    module='leam.taz.mymodule',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite('INTEGRATION.txt',
                             package='leam.taz',
                             optionflags=OPTION_FLAGS,
                             test_class=TestCase),

        # -*- extra stuff goes here -*-

        # Integration tests for TAZAnalysis
        ztc.ZopeDocFileSuite('TAZAnalysis.txt',
                             package='leam.taz',
                             optionflags=OPTION_FLAGS,
                             test_class=TestCase),
    ])
Exemplo n.º 8
0
def test_suite():
    """This sets up a test suite that actually runs the tests in the class
    above
    """
    return unittest.TestSuite([

        # Here, we create a test suite passing the name of a file relative
        # to the package home, the name of the package, and the test base
        # class to use. Here, the base class is a full PloneTestCase, which
        # means that we get a full Plone site set up.

        # The actual test is in functional.txt

        ztc.ZopeDocFileSuite(
            'tools/testConfiglet.txt', package='leocornus.sitesadmin',
            test_class = SitesAdminFunctionalTestCase,
            optionflags = doctest.REPORT_ONLY_FIRST_FAILURE | \
                          doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS),

        ztc.ZopeDocFileSuite(
            'plugins/functional.txt', package='leocornus.sitesadmin',
            test_class = SitesAdminFunctionalTestCase,
            optionflags = doctest.REPORT_ONLY_FIRST_FAILURE | \
                          doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS),

        # We could add more doctest files here as well, by copying the file
        # block above.

        ])
Exemplo n.º 9
0
def test_suite():
    return unittest.TestSuite([
        doctest.DocTestSuite(
            'getpaid.pxpay.parser',
            optionflags=optionflags,
        ),
        ZopeTestCase.ZopeDocFileSuite(
            'parser.txt',
            package='getpaid.pxpay.tests',
            test_class=PloneGetPaidTestCase,
            optionflags=optionflags,
        ),
        ZopeTestCase.ZopeDocFileSuite(
            'paymentprocessor.txt',
            package='getpaid.pxpay.tests',
            test_class=PloneGetPaidTestCase,
            optionflags=optionflags,
        ),
        ZopeTestCase.ZopeDocFileSuite(
            'callback.txt',
            package='getpaid.pxpay.tests',
            test_class=PloneGetPaidTestCase,
            optionflags=optionflags,
        ),
        ZopeTestCase.ZopeDocFileSuite(
            'utils.txt',
            package='getpaid.pxpay.tests',
            test_class=PloneGetPaidTestCase,
            optionflags=optionflags,
        ),
    ])
Exemplo n.º 10
0
def test_suite():
    return unittest.TestSuite([

        # Unit tests
        #doctestunit.DocFileSuite(
        #    'README.txt', package='ketomatic.contenttypes',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        #doctestunit.DocTestSuite(
        #    module='ketomatic.contenttypes.mymodule',
        #    setUp=testing.setUp, tearDown=testing.tearDown),


        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite(
            'INTEGRATION.txt',
            package='ketomatic.contenttypes',
            optionflags = OPTION_FLAGS,
            test_class=TestCase),

        # -*- extra stuff goes here -*-

        # Integration tests for IngredientFolder
        ztc.ZopeDocFileSuite(
            'IngredientFolder.txt',
            package='ketomatic.contenttypes',
            optionflags = OPTION_FLAGS,
            test_class=TestCase),


        # Integration tests for RecipeFolder
        ztc.ZopeDocFileSuite(
            'RecipeFolder.txt',
            package='ketomatic.contenttypes',
            optionflags = OPTION_FLAGS,
            test_class=TestCase),


        # Integration tests for Ingredient
        ztc.ZopeDocFileSuite(
            'Ingredient.txt',
            package='ketomatic.contenttypes',
            optionflags = OPTION_FLAGS,
            test_class=TestCase),


        # Integration tests for Recipe
        ztc.ZopeDocFileSuite(
            'Recipe.txt',
            package='ketomatic.contenttypes',
            optionflags = OPTION_FLAGS,
            test_class=TestCase),


        ])
Exemplo n.º 11
0
def test_suite():
    return unittest.TestSuite([

        # Unit tests
        #doctestunit.DocFileSuite(
        #    'README.txt', package='myswimmingclub.content',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        #doctestunit.DocTestSuite(
        #    module='myswimmingclub.content.mymodule',
        #    setUp=testing.setUp, tearDown=testing.tearDown),


        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite(
            'INTEGRATION.txt',
            package='myswimmingclub.content',
            optionflags = OPTION_FLAGS,
            test_class=TestCase),

        # -*- extra stuff goes here -*-

        # Integration tests for PoolLocation
        ztc.ZopeDocFileSuite(
            'PoolLocation.txt',
            package='myswimmingclub.content',
            optionflags = OPTION_FLAGS,
            test_class=TestCase),


        # Integration tests for SwimmingMeet
        ztc.ZopeDocFileSuite(
            'SwimmingMeet.txt',
            package='myswimmingclub.content',
            optionflags = OPTION_FLAGS,
            test_class=TestCase),


        # Integration tests for Swimmer
        ztc.ZopeDocFileSuite(
            'Swimmer.txt',
            package='myswimmingclub.content',
            optionflags = OPTION_FLAGS,
            test_class=TestCase),


        # Integration tests for Squad
        ztc.ZopeDocFileSuite(
            'Squad.txt',
            package='myswimmingclub.content',
            optionflags = OPTION_FLAGS,
            test_class=TestCase),


        ])
Exemplo n.º 12
0
def test_suite():

    return unittest.TestSuite([

        ZopeTestCase.ZopeDocFileSuite('README.txt',
                                      package='iscorpio.plonepm',
                                      test_class=PlonepmFunctionalTestCase),
                           
        ZopeTestCase.ZopeDocFileSuite('tests/README.txt',
                                      package='iscorpio.plonepm'),

        # other text files.
        ])
def test_suite():
    return unittest.TestSuite([

        # Demonstrate the main content types
        ztc.ZopeDocFileSuite('tests/content.txt',
                             package='collective.portletpage',
                             test_class=base.FunctionalTestCase,
                             optionflags=optionflags),

        # Demonstrate the portlet assignment
        ztc.ZopeDocFileSuite('tests/portletassignment.txt',
                             package='collective.portletpage',
                             test_class=base.FunctionalTestCase,
                             optionflags=optionflags),
    ])
Exemplo n.º 14
0
def test_suite():
    return unittest.TestSuite([

        # Unit tests
        #doctestunit.DocFileSuite(
        #    'README.txt', package='blog.sitetheme',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        #doctestunit.DocTestSuite(
        #    module='blog.sitetheme.mymodule',
        #    setUp=testing.setUp, tearDown=testing.tearDown),


        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite(
            'INTEGRATION.txt', 
            package='blog.sitetheme',
            optionflags = OPTION_FLAGS,
            test_class=TestCase),

        #ztc.FunctionalDocFileSuite(
        #    'BROWSER.TXT',
        #    package='blog.sitetheme',
        #    optionflags = OPTION_FLAGS,
        #    test_class=TestCase),

        ])
Exemplo n.º 15
0
def test_suite():
    return unittest.TestSuite([

        # Unit tests
        #doctestunit.DocFileSuite(
        #    'README.txt', package='lx.site.wilker',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        #doctestunit.DocTestSuite(
        #    module='lx.site.wilker.mymodule',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite('README.txt',
                             package='lx.site.wilker.docs',
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
                             | doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
                             test_class=TestCase),
        ztc.FunctionalDocFileSuite(
            'browser.txt',
            package='lx.site.wilker.docs',
            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
            | doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
            test_class=TestCase),
    ])
Exemplo n.º 16
0
def test_suite():
    return unittest.TestSuite([

        # Unit tests
        #doctestunit.DocFileSuite(
        #    'README.txt', package='collective.collage.megamenu',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        #doctestunit.DocTestSuite(
        #    module='collective.collage.megamenu.browser.helper',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        # Integration tests that use PloneTestCase
        #ztc.ZopeDocFileSuite(
        #    'docs/vocabulary.txt', package='collective.collage.megamenu',
        #    test_class=base.FunctionalTestCase),

        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite('docs/browser.txt',
                             package='collective.collage.megamenu',
                             test_class=base.FunctionalTestCaseWithContent),

        # Integration tests that use PloneTestCase
        #ztc.ZopeDocFileSuite(
        #    'README.txt', package='collective.collage.megamenu',
        #    test_class=base.FunctionalTestCase),

        #ztc.FunctionalDocFileSuite(
        #    'browser.txt', package='collective.collage.megamenu',
        #    test_class=TestCase),
    ])
Exemplo n.º 17
0
def test_suite():
    return unittest.TestSuite([
        # Demonstrate the main content types
        ztc.FunctionalDocFileSuite(
            'tests/functional.txt',
            package='currency.converter',
            test_class=TestSetup,
            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
            | doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS),

        #        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite('tests/integration.txt',
                             package='currency.converter',
                             test_class=base.CurrencyConverterTestCase,
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
                             | doctest.NORMALIZE_WHITESPACE
                             | doctest.ELLIPSIS),

        # Unit tests
        DocFileSuite('tests/unittest.txt',
                     package='currency.converter',
                     setUp=testing.setUp,
                     tearDown=testing.tearDown,
                     optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
                     | doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS),
    ])
Exemplo n.º 18
0
def test_suite():
    """ Suite
    """
    return unittest.TestSuite([

        # Unit tests
        #doctestunit.DocFileSuite(
        #    'README.txt', package='eea.design',
        #    setUp=testing.setUp, tearDown=testing.tearDown),

        #doctestunit.DocTestSuite(
        #    module='eea.design.mymodule',
        #    setUp=testing.setUp, tearDown=testing.tearDown),


        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite(
            'README.txt', package='eea.design',
            test_class=TestCase),

        #ztc.FunctionalDocFileSuite(
        #    'browser.txt', package='eea.design',
        #    test_class=TestCase),

        ])
Exemplo n.º 19
0
def test_suite():
    return unittest.TestSuite([
        ztc.ZopeDocFileSuite(
            'tests/integration.rst', package='plone.app.contentlisting',
            test_class=ContentlistingFunctionalTestCase,
            optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS),
    ])
Exemplo n.º 20
0
def test_suite():
    return unittest.TestSuite((ztc.ZopeDocFileSuite(
        'tests/analytics.txt',
        package='plone.app.layout.analytics',
        test_class=base.AnalyticsFunctionalTestCase,
        optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
        | doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS), ))
Exemplo n.º 21
0
def test_suite():
    return unittest.TestSuite([
        # Integration tests that use PloneTestCase
        ztc.ZopeDocFileSuite(
                'README.txt', package='plone4bio.biosql',
                test_class=BaseTestCase),
        ])
def test_suite():
    # Wire in integration.txt tests as doctests in the integration layer
    return unittest.TestSuite([
        ztc.ZopeDocFileSuite(
            'tests/integration.rst', package='archetypes.querywidget',
            test_class=base.ArchetypesQueryWidgetTestCase,
            optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS),
    ])
def test_suite():
    optionflags = (doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE)
    return unittest.TestSuite([
        ztc.ZopeDocFileSuite('browser/datecomponents.txt',
                             package='Products.Archetypes',
                             test_class=ATTestCase,
                             optionflags=optionflags),
    ])
Exemplo n.º 24
0
def test_suite():
    return unittest.TestSuite([
        ztc.ZopeDocFileSuite(f,
                             package='plone.stringinterp.tests',
                             test_class=PloneStringinterpTestCase,
                             optionflags=doctest.NORMALIZE_WHITESPACE
                             | doctest.ELLIPSIS) for f in testfiles
    ])
Exemplo n.º 25
0
def test_suite():
    return unittest.TestSuite([
        ztc.ZopeDocFileSuite('README.txt',
                             package='borg.project',
                             test_class=BorgProjectFunctionalTestCase,
                             optionflags=(doctest.ELLIPSIS
                                          | doctest.NORMALIZE_WHITESPACE)),
    ])
Exemplo n.º 26
0
def test_suite():
    return unittest.TestSuite((
        ztc.ZopeDocFileSuite(
            'basecontent.txt',
            package='plone.app.content',
            test_class=ContentFunctionalTestCase,
            optionflags=(doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE)),
    ))
Exemplo n.º 27
0
def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(
        ztc.ZopeDocFileSuite(
            'README.txt', package='pleiades.geographer',
            test_class=PleiadesGeographerFunctionalTestCase)
        )
    return suite
Exemplo n.º 28
0
def test_suite():

    return unittest.TestSuite([
        ztc.ZopeDocFileSuite(
            filename,
            optionflags=optionflags,
            test_class=DRITestcase
        ) for filename in TESTFILES])
Exemplo n.º 29
0
def test_suite():
    suite = unittest.TestSuite()
    for doctestfile in doctests:
        suite.addTests([
            ztc.ZopeDocFileSuite(doctestfile,
                                 test_class=BaseTestCase,
                                 optionflags=flags)
        ])
    return suite
Exemplo n.º 30
0
def test_suite():
    return unittest.TestSuite([
        ztc.ZopeDocFileSuite('README.txt',
                             package='raptus.multilanguagefields',
                             test_class=base.FunctionalTestCase,
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
                             | doctest.NORMALIZE_WHITESPACE
                             | doctest.ELLIPSIS),
    ])