Esempio n. 1
0
def test_suite():
    suites = [
        Suite('simplepublish.txt',
              package='plone.app.contentrules.tests',
              test_class=ptc.FunctionalTestCase),
        Suite('multipublish.txt',
              package='plone.app.contentrules.tests',
              test_class=ptc.FunctionalTestCase)
    ]

    return unittest.TestSuite(suites)
Esempio n. 2
0
def test_suite():
    """ Suite
    """
    return unittest.TestSuite((
        Suite('doc/usage.txt',
              optionflags=OPTIONFLAGS,
              package='Products.NaayaPhotoArchive',
              test_class=CustomFunctionalTestCase),
        Suite('doc/content.txt',
              optionflags=OPTIONFLAGS,
              package='Products.NaayaPhotoArchive',
              test_class=CustomFunctionalTestCase),
    ))
Esempio n. 3
0
def test_suite():
    """ Suite
    """
    return unittest.TestSuite((
        Suite('Utils.py',
              optionflags=OPTIONFLAGS,
              package='Products.NaayaLinkChecker',
              test_class=CustomFunctionalTestCase),
        Suite('doc/functionality.txt',
              optionflags=OPTIONFLAGS,
              package='Products.NaayaLinkChecker',
              test_class=CustomFunctionalTestCase),
    ))
Esempio n. 4
0
def test_suite():
    return unittest.TestSuite((
        DocTestSuite('plone.app.i18n.locales.countries'),
        DocTestSuite('plone.app.i18n.locales.languages'),
        Suite('countries.txt',
            optionflags=OPTIONFLAGS,
            package='plone.app.i18n.locales.tests',
            test_class=PloneTestCase.FunctionalTestCase
            ),
        Suite('languages.txt',
            optionflags=OPTIONFLAGS,
            package='plone.app.i18n.locales.tests',
            test_class=PloneTestCase.FunctionalTestCase
            )
        ))
Esempio n. 5
0
def test_suite():
    tests = (Suite('README.txt',
                   package="upfront.simplereferencefield",
                   setUp=setUp,
                   optionflags=optionflags,
                   test_class=FunctionalTestCase), )
    return unittest.TestSuite(tests)
Esempio n. 6
0
def test_suite():
    """ Suite
    """
    return unittest.TestSuite((Suite('widgets/alphabetic/widget.txt',
                                     optionflags=OPTIONFLAGS,
                                     package='eea.facetednavigation',
                                     test_class=FacetedFunctionalTestCase), ))
Esempio n. 7
0
def test_suite():
    """ Suite
    """
    return unittest.TestSuite((
        # Suite('README.txt',
        #       optionflags=OPTIONFLAGS,
        #       package='eea.faceted.tool',
        #       test_class=FacetedFunctionalTestCase),
        Suite('docs/browser.txt',
              optionflags=OPTIONFLAGS,
              package='eea.faceted.tool',
              test_class=FacetedFunctionalTestCase),
        # Suite('docs/storage.txt',
        #       optionflags=OPTIONFLAGS,
        #       package='eea.faceted.tool',
        #       test_class=FacetedFunctionalTestCase),
        # Suite('docs/vocabularies.txt',
        #       optionflags=OPTIONFLAGS,
        #       package='eea.faceted.tool',
        #       test_class=FacetedFunctionalTestCase),
        # Suite('docs/search.txt',
        #       optionflags=OPTIONFLAGS,
        #       package='eea.faceted.tool',
        #       test_class=FacetedFunctionalTestCase),
        # Suite('docs/exportimport.txt',
        #       optionflags=OPTIONFLAGS,
        #       package='eea.faceted.tool',
        #       test_class=FacetedFunctionalTestCase),
    ))
Esempio n. 8
0
def test_suite():
    return unittest.TestSuite(
        (doctest.DocTestSuite('plone.app.i18n.locales.countries'),
         doctest.DocTestSuite('plone.app.i18n.locales.languages'),
         layered(Suite(
             'countries.txt',
             optionflags=OPTIONFLAGS,
             package='plone.app.i18n.locales.tests',
         ),
                 layer=PTC_FUNCTIONAL_TESTING),
         layered(Suite(
             'languages.txt',
             optionflags=OPTIONFLAGS,
             package='plone.app.i18n.locales.tests',
         ),
                 layer=PTC_FUNCTIONAL_TESTING)))
Esempio n. 9
0
def test_suite():
    """ Suite
    """
    if not LinguaPlone:
        return unittest.TestSuite()

    return unittest.TestSuite((
        Suite('widgets/path/widget.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
        Suite('widgets/path/tree.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
    ))
Esempio n. 10
0
def test_suite():
    filenames = list_doctests()
    suites = [
        Suite(os.path.basename(filename),
              optionflags=OPTIONFLAGS,
              package='Products.CMFPlone.tests',
              test_class=PloneTestCase.FunctionalTestCase)
        for filename in filenames
    ]
    suites.extend([
        Suite(os.path.basename(filename),
              optionflags=OPTIONFLAGS,
              package='Products.CMFPlone.tests',
              test_class=PloneAtTestCase) for filename in ['translate.txt']
    ])
    return unittest.TestSuite(suites)
Esempio n. 11
0
def test_suite():
    filenames = list_doctests()
    suites = [Suite(os.path.basename(filename),
                    optionflags=OPTIONFLAGS,
                    package='Products.SimpleAttachment.tests',
                    test_class=FunctionalTestCase)
              for filename in filenames]
    return unittest.TestSuite(suites)
Esempio n. 12
0
def test_suite():
    suites = [
        Suite('upgrade_steps.txt',
              package='Products.Poi.tests',
              optionflags=OPTIONFLAGS,
              test_class=PoiTestCase),
    ]
    return unittest.TestSuite(suites)
Esempio n. 13
0
def test_suite():
    """ Suite
    """
    return unittest.TestSuite((
            Suite('README.txt',
                  optionflags=OPTIONFLAGS,
                  package='eea.geotags',
                  test_class=EEAGeotagsFunctionalTestCase),
            Suite('docs/vocabulary.txt',
                  optionflags=OPTIONFLAGS,
                  package='eea.geotags',
                  test_class=EEAGeotagsFunctionalTestCase),
            Suite('docs/storage.txt',
                  optionflags=OPTIONFLAGS,
                  package='eea.geotags',
                  test_class=EEAGeotagsFunctionalTestCase),
    ))
Esempio n. 14
0
def test_suite():
    suites = [
        Suite('browser.txt',
              package='Products.Poi.tests',
              optionflags=OPTIONFLAGS,
              test_class=PoiFunctionalTestCase),
    ]
    return unittest.TestSuite(suites)
Esempio n. 15
0
def test_suite():
    return unittest.TestSuite(
        [Suite(os.path.basename(filename),
               optionflags=OPTIONFLAGS,
               package='aws.pdfbook.tests',
               test_class=PDFBookFunctionalTestCase)
         for filename in list_doctests()]
        )
Esempio n. 16
0
def test_suite():
    filenames = list_doctests()
    return unittest.TestSuite(
        [Suite(os.path.basename(filename),
               optionflags=OPTIONFLAGS,
               package='Products.PloneGetPaid',
               test_class=PloneGetPaidFunctionalTestCase)
         for filename in filenames]
        )
Esempio n. 17
0
def test_suite():
    filenames = list_doctests()
    suites = [
        Suite(os.path.basename(filename),
              optionflags=OPTIONFLAGS,
              package='Products.eXtremeManagement.doc',
              setUp=setUp,
              test_class=eXtremeManagementFunctionalTestCase)
        for filename in filenames
    ]
    return unittest.TestSuite(suites)
Esempio n. 18
0
def test_suite():

    import Products.Five.testbrowser

    filenames = list_doctests()

    return unittest.TestSuite([
        Suite(os.path.basename(filename),
              optionflags=OPTIONFLAGS,
              package='Products.PloneHelpCenter.tests',
              test_class=PHCFunctionalTestCase) for filename in filenames
    ])
Esempio n. 19
0
def test_suite():
    tarball = FileUpload(FileHolder(os.path.join(datadir, 'project-macosx-10.3-fat.tar.gz')))
    egg = FileUpload(FileHolder(os.path.join(datadir, 'project.egg')))
 
    globs = globals()
    globs['tarball'] = tarball
    globs['egg'] = egg

    return Suite(os.path.basename('pypi.txt'),
                 os.path.basename('permissions.txt'),
                 optionflags=OPTIONFLAGS,
                 package='Products.PloneSoftwareCenter.tests',
                 test_class=PSCFunctionalTestCase,
                 setUp=setUp, globs=globs)
Esempio n. 20
0
def test_suite():

    # BBB: We can obviously remove this when testbrowser is Plone
    #      mainstream, read: with Five 1.4.
    try:
        import Products.Five.testbrowser
    except ImportError:
        print >> sys.stderr, ("WARNING: testbrowser not found - you probably"
                              "need to add Five 1.4 to the Products folder. "
                              "testbrowser tests skipped")
        filenames = list_nontestbrowser_tests()
    else:
        filenames = list_doctests()

    return unittest.TestSuite(
        [Suite(os.path.basename(filename),
               optionflags=OPTIONFLAGS,
               package='Products.EasyShop.tests',
               test_class=EasyShopFunctionalTestCase)
         for filename in filenames]
        )
def test_suite():
    """ Suite
    """

    tests = unittest.TestSuite((
        Suite('README.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
        Suite('docs/facetednavigation.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
        Suite('docs/widgets.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
        Suite('docs/criteria.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
        Suite('docs/counter.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
        Suite('docs/exportimport.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
        Suite('docs/syndication.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
        Suite('docs/wrapper.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
        Suite('docs/versions.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
        Suite('docs/unicode.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
        Suite('docs/browser.txt',
              optionflags=OPTIONFLAGS,
              package='eea.facetednavigation',
              test_class=FacetedFunctionalTestCase),
    ))
    #
    # LinguaPlone releted tests
    #
    if LinguaPlone:
        tests.addTest(
            Suite('docs/syncronize.txt',
                  optionflags=OPTIONFLAGS,
                  package='eea.facetednavigation',
                  test_class=FacetedFunctionalTestCase))
        tests.addTest(
            Suite('docs/language.txt',
                  optionflags=OPTIONFLAGS,
                  package='eea.facetednavigation',
                  test_class=FacetedFunctionalTestCase))
    return tests