コード例 #1
0
ファイル: test_indicators.py プロジェクト: eea/eea.indicators
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))
コード例 #2
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))
コード例 #3
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
コード例 #4
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, ))
コード例 #5
0
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, ))
コード例 #6
0
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,
                      ))
コード例 #7
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