• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(16608)  |  Call(14333)  |  Derive(373)  |  Import(1902)
A test suite is a composite test consisting of a number of TestCases.

For use, create an instance of TestSuite, then add test case instances.
When all tests have been added, the suite can be passed to a test
runner, such as TextTestRunner. It will run the individual test cases
in the order in which they were added, aggregating the results. When
subclassing, do not forget to call the base class constructor.

src/p/r/Products.sampleremember-1.1b2/Products/sampleremember/tests/test_sampleremember.py   Products.sampleremember(Download)
def test_suite():
    from unittest import TestSuite, makeSuite
    suite = TestSuite()
    suite.addTest(makeSuite(TestRememberBasedContent))
    suite.addTest(makeSuite(TestInstall))
    return suite
 

src/e/x/example.archetype-1.0/example/archetype/tests/test_setup.py   example.archetype(Download)
def test_suite():
    from unittest import TestSuite, makeSuite
    suite = TestSuite()
    suite.addTest(makeSuite(TestProductInstall))
    suite.addTest(makeSuite(TestInstantiation))
    return suite
 

src/c/o/collective.ploneseltest-1.0b2/collective/ploneseltest/tests/test_example.py   collective.ploneseltest(Download)
def test_suite():
    from unittest import TestSuite, makeSuite
    suite = TestSuite()
    suite.addTest(makeSuite(ExampleTestCase))
    return suite

src/c/2/c2.sample.csvworkflow-1.1/c2/sample/csvworkflow/tests/testSetup.py   c2.sample.csvworkflow(Download)
from Products.CMFCore.permissions import ListFolderContents
from Products.CMFCore.permissions import View
from Products.CMFCore.utils import _checkPermission as checkPerm
from unittest import TestSuite, makeSuite
from WFtest import *
 
from c2.sample.csvworkflow.tests.base import C2CsvworkflowTestCase
def test_suite():
    suite = TestSuite()
    suite.addTest(makeSuite(TestWorkflowAction))
    return suite
 

src/z/o/zope.tal-3.5.2/setup.py   zope.tal(Download)
    from zope.testing.testrunner import find_suites
    from zope.testing.testrunner import configure_logging
    configure_logging()
    from unittest import TestSuite
    here = os.path.abspath(os.path.dirname(sys.argv[0]))
    args = sys.argv[:]
    src = os.path.join(here, 'src')
    defaults = ['--test-path', src]
    options = get_options(args, defaults)
    suites = list(find_suites(options))
    return TestSuite(suites)

src/z/c/ZConfig-2.8.0/setup.py   ZConfig(Download)
def alltests():
    import os
    import sys
    from unittest import TestSuite
    # use the zope.testing testrunner machinery to find all the
    # test suites we've put under ourselves
    from zope.testing.testrunner import get_options
    defaults = ["--test-path", here]
    options = get_options(args, defaults)
    suites = list(find_suites(options))
    return TestSuite(suites)
 
options = dict(
    name="ZConfig",

src/r/e/repoze.recipe.egg-0.3/setup.py   repoze.recipe.egg(Download)
    from zope.testing.testrunner import find_suites
    from zope.testing.testrunner import configure_logging
    configure_logging()
    from unittest import TestSuite
    import sys
    here = os.path.abspath(os.path.dirname(sys.argv[0]))
    args = sys.argv[:]
    defaults = ['--test-path', here]
    options = get_options(args, defaults)
    suites = list(find_suites(options))
    return TestSuite(suites)

src/i/m/Importing-1.10/peak/util/imports.py   Importing(Download)
def importSuite(specs, globalDict=defaultGlobalDict):
    """Create a test suite from import specs"""
 
    from unittest import TestSuite
 
    return TestSuite(
        [t() for t in importSequence(specs,globalDict)]

src/p/e/peckcheck-HEAD/peckcheck.py   peckcheck(Download)
 
# We import these remaining names so peckcheck can serve as a drop-in
# replacement for the unittest module.
from unittest import TestResult, TestSuite, FunctionTestCase
 
if __name__ == '__main__':
    main(module=None)

src/i/n/IntPy-0.1.3/src/__init__.py   IntPy(Download)
def _test():
    from doctest import DocTestSuite
    from inspect import getmodule
    from os import walk
    from os.path import abspath, dirname, join
    from unittest import TestSuite, TextTestRunner
    test_suite = TestSuite()

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next