Exemple #1
0
def test_suite():
    """test suite"""

    s1 = ZopeDocFileSuite(
        'install.txt',
        package='eea.indicators.doc',
        test_class=BaseIndicatorsTestCase,
        #options=OPTIONFLAGS
    )

    s2 = ZopeDocFileSuite(
        'contenttypes.txt',
        package='eea.indicators.doc',
        test_class=BaseIndicatorsTestCase,
        #options=OPTIONFLAGS
    )
    s2.layer = PloneSite

    s3 = ZopeDocFileSuite(
        'permissions.txt',
        package='eea.indicators.doc',
        test_class=BaseIndicatorsTestCase,
        #options=OPTIONFLAGS
    )
    s3.layer = PloneSite

    s4 = ZopeDocFileSuite(
        'marshaller.txt',
        package='eea.indicators.doc',
        test_class=BaseIndicatorsTestCase,
        #options=OPTIONFLAGS
    )
    s4.layer = PloneSite

    return TestSuite((s1, s2, s3, s4))
def test_suite():
    suite = unittest.TestSuite(())

    dt = ZopeDocFileSuite(
        "metaweblogapi.txt",
        package="quills.remoteblogging.tests",
        test_class=TestRemoteBlogging,
        optionflags=doctest.ELLIPSIS,
    )
    dt.layer = PloneSite
    suite.addTest(dt)

    suite.addTest(
        doctest.DocTestSuite(
            "quills.app.remoteblogging.uidmanager",
            setUp=zope.component.testing.setUp,
            tearDown=zope.component.testing.tearDown,
        )
    )

    suite.addTest(
        doctest.DocTestSuite(
            "quills.app.remoteblogging.usermanager",
            setUp=zope.component.testing.setUp,
            tearDown=zope.component.testing.tearDown,
        )
    )

    return suite
Exemple #3
0
def test_suite():
    from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite

    suite = ZopeDocFileSuite('feedfeeder-integration.txt',
                             package='Products.feedfeeder.doc',
                             test_class=MainTestCase)
    suite.layer = PloneSite

    return unittest.TestSuite((suite, ))
def test_suite():
    from unittest import TestSuite
    from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite
    from Testing.ZopeTestCase import ZopeDocFileSuite
    ##code-section test-suite-in-between #fill in your manual code here
    ##/code-section test-suite-in-between

    s = ZopeDocFileSuite('testXMLMarshall.txt',
                         package='Products.CompoundField.doc',
                         test_class=testXMLMarshall)
    if USELAYER:
        s.layer = PloneSite
    return TestSuite((s, ))
def test_suite():
    from unittest import TestSuite
    from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite
    from Testing.ZopeTestCase import ZopeDocFileSuite
    ##code-section test-suite-in-between #fill in your manual code here
##/code-section test-suite-in-between


    s = ZopeDocFileSuite('testNestedArrayFields.txt',
                         package='Products.CompoundField.doc',
                         test_class=testNestedArrayFields)
    if USELAYER:
        s.layer = PloneSite
    return TestSuite((s,
                      ))
def test_suite():
    from unittest import TestSuite, makeSuite
    from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite
    from zope.testing import doctest

    # First make sure we are were we think we are:
    import os, time
    os.environ['TZ'] = 'Europe/Paris'
    time.tzset()

    suite = TestSuite()
    suite.addTest(
        doctest.DocTestSuite('p4a.plonecalendar.utils',
                             optionflags=doctest.ELLIPSIS))
    suite.addTest(
        doctest.DocTestSuite('p4a.plonecalendar.sitesetup',
                             optionflags=doctest.ELLIPSIS))
    suite.addTest(
        ZopeDocFileSuite(
            'calendar.txt',
            package='p4a.plonecalendar',
            test_class=CalendarTestCase,
        ))
    suite.addTests(makeSuite(ATEventProviderTest))
    suite.addTests(makeSuite(TopicEventProviderTest))
    suite.addTests(makeSuite(LocationFilterTest))
    suite.layer = layer.ZCMLLayer

    return suite
Exemple #7
0
def test_suite():
    from unittest import TestSuite
    from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite

    return TestSuite((
        ZopeDocFileSuite('Overview.txt',
                         package='Products.Relations.doc',
                         test_class=TestOverviewTxt),
    ))
def test_suite():
    suite = TestSuite()
    suite.layer = layer.ZCMLLayer
    suite.addTest(ZopeDocFileSuite(
        'migration.txt',
        package='p4a.ploneaudio.ataudio',
        test_class=testing.IntegrationTestCase,
        )
    )

    return suite
Exemple #9
0
def test_suite():
    from unittest import TestSuite
    from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite

    <dtml-var "generator.getProtectedSection(parsed_class, 'test-suite-in-between')">

    return TestSuite((
        ZopeDocFileSuite('<dtml-var "testname">.txt',
                         package='Products.<dtml-var "klass.getPackage().getProduct().getCleanName()">.doc',
                         test_class=<dtml-var "klass.getCleanName()">),
    ))
Exemple #10
0
def test_suite():
    suite = unittest.TestSuite(())

    dt = ZopeDocFileSuite(
        'metaweblogapi.txt',
        package='quills.remoteblogging.tests',
        test_class=TestRemoteBlogging,
        optionflags=doctest.ELLIPSIS,
        )
    dt.layer = PloneSite
    suite.addTest(dt)

    suite.addTest(doctest.DocTestSuite('quills.app.remoteblogging.uidmanager',
                 setUp=zope.component.testing.setUp,
                 tearDown=zope.component.testing.tearDown))

    suite.addTest(doctest.DocTestSuite('quills.app.remoteblogging.usermanager',
                 setUp=zope.component.testing.setUp,
                 tearDown=zope.component.testing.tearDown))

    return suite
Exemple #11
0
def test_suite():
    """test suite"""

    s1 = ZopeDocFileSuite('install.txt',
                         package='eea.indicators.doc',
                         test_class=BaseIndicatorsTestCase,
                         #options=OPTIONFLAGS
                         )

    s2 = ZopeDocFileSuite('contenttypes.txt',
                         package='eea.indicators.doc',
                         test_class=BaseIndicatorsTestCase,
                         #options=OPTIONFLAGS
                         )
    s2.layer = PloneSite

    s3 = ZopeDocFileSuite('permissions.txt',
                         package='eea.indicators.doc',
                         test_class=BaseIndicatorsTestCase,
                         #options=OPTIONFLAGS
                         )
    s3.layer = PloneSite

    s4 = ZopeDocFileSuite('marshaller.txt',
                         package='eea.indicators.doc',
                         test_class=BaseIndicatorsTestCase,
                         #options=OPTIONFLAGS
                         )
    s4.layer = PloneSite

    return TestSuite((s1, s2, s3, s4))
Exemple #12
0
def test_suite():
    return unittest.TestSuite([
        ZopeDocFileSuite(
            'tests.txt',
            package='collective.confirmableforms',
            optionflags=OPTIONFLAGS,
            test_class=TestCase,
        ),
        # Unit tests
        # doctestunit.DocFileSuite(
        #    'README.txt', package='collective.confirmableforms',
        #    setUp=testing.setUp, tearDown=testing.tearDown),
        # doctestunit.DocTestSuite(
        #    module='collective.confirmableforms.mymodule',
        #    setUp=testing.setUp, tearDown=testing.tearDown),
        # Integration tests that use PloneTestCase
        # ztc.ZopeDocFileSuite(
        #    'README.txt', package='collective.confirmableforms',
        #    test_class=TestCase),
        # ztc.FunctionalDocFileSuite(
        #    'browser.txt', package='collective.confirmableforms',
        #    test_class=TestCase),
    ])
def test_suite():
    suite = unittest.TestSuite(())

    suite.addTest(ZopeDocFileSuite(
        'tests.txt',
        package='quills.core.tests',
        test_class=QuillsDocTestCase,
        optionflags=optionflags,
        )
    )

    suite.addTest(ZopeDocFileSuite(
        'tests.txt',
        package='quills.core.tests',
        test_class=QuillsContributorDocTestCase,
        optionflags=optionflags,
        )
    )

    suite.addTest(ZopeDocFileSuite(
        'browser.rst',
        package='quills.app.tests',
        test_class=QuillsFunctionalTestCase,
        optionflags=optionflags,
        )
    )

    suite.addTest(ZopeDocFileSuite(
        'browser.rst',
        package='Products.Quills.tests',
        test_class=QuillsFunctionalTestCase,
        optionflags=optionflags,
        )
    )

    suite.addTest(ZopeDocFileSuite(
        'fixedBugs.rst',
        package='quills.app.tests',
        test_class=QuillsFunctionalTestCase,
        optionflags=optionflags,
        )
    )

    suite.addTest(ZopeDocFileSuite(
        'openBugs.rst',
        package='quills.app.tests',
        test_class=QuillsFunctionalTestCase,
        optionflags=optionflags,
        )
    )

    suite.addTest(ZopeDocFileSuite(
        'issue193.txt',
        package='quills.app.tests',
        test_class=QuillsFunctionalTestCase,
        optionflags=optionflags,
        )
    )

    suite.addTest(ZopeDocFileSuite(
        'syndication.rst',
        package='quills.app.tests',
        test_class=QuillsFunctionalTestCase,
        optionflags=optionflags,
        )
    )

    suite.addTest(ZopeDocFileSuite(
        'fixedBugs.rst',
        package='Products.Quills.tests',
        test_class=QuillsFunctionalTestCase,
        optionflags=optionflags,
        )
    )

    suite.addTest(ZopeDocFileSuite(
        'openBugs.rst',
        package='Products.Quills.tests',
        test_class=QuillsFunctionalTestCase,
        optionflags=optionflags,
        )
    )


    suite.layer = PloneSite
    return suite