Ejemplo n.º 1
0
def test_suite():
    from zope.testing.doctest import DocTestSuite, DocFileSuite
    return unittest.TestSuite((
        DocFileSuite('doom.txt'),
        DocTestSuite(),
        unittest.makeSuite(TransactionTests),
        ))
Ejemplo n.º 2
0
def test_suite():
    files = ['../wizard.txt', '../dynamic_wizard.txt']
    suites = [
        DocFileSuite(
            file,
            setUp=setUp,
            tearDown=testing.tearDown,
            optionflags=(doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS),
            globs=globals(),
        ) for file in files
    ]
    return unittest.TestSuite(suites)
Ejemplo n.º 3
0
def test_suite():
    filenames = list_doctests()

    suites = []
    for filename in filenames:
        filename = os.path.join("tests", os.path.basename(filename))
        suite = layered(DocFileSuite(filename,
                                     package='bika.lims',
                                     optionflags=OPTIONFLAGS),
                        layer=BIKA_FUNCTIONAL_TESTING)
        suites.append(suite)

    return unittest.TestSuite(suites)
Ejemplo n.º 4
0
def test_suite():
    uSuites = (
        DocFileSuite(
            'install.txt',
            setUp=setUp,
            tearDown=tearDown,
            optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
            ),
        DocTestSuite(
            'lovely.buildouthttp.buildouthttp',
            setUp=setUp, tearDown=tearDown,
            optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
            ),
        )
    return unittest.TestSuite(uSuites)
Ejemplo n.º 5
0
def test_suite():
    return unittest.TestSuite([DocTestSuite(tt.eggdeps.requirements)] + [
        DocFileSuite(
            filename,
            package="tt.eggdeps",
            globs=dict(
                make_dist=make_dist,
                make_working_set=make_working_set,
                sprint=sprint,
                sort_specs=sort_specs,
                Options=Options,
            ),
            optionflags=doctest.NORMALIZE_WHITESPACE
            | (0 if filename == 'plaintext.txt' else doctest.ELLIPSIS)
            | doctest.REPORT_NDIFF,
        ) for filename in sorted(os.listdir(os.path.dirname(__file__)))
        if filename.endswith(".txt")
    ])
Ejemplo n.º 6
0
def test_suite():
    return unittest.TestSuite((
        DocTestSuite(),
        DocFileSuite('README.txt', package='Acquisition'),
    ))
Ejemplo n.º 7
0
def test_suite():
    return unittest.TestSuite((DocFileSuite(
        os.path.abspath(os.path.join(os.path.dirname(__file__), 'README.txt')),
        optionflags=REPORT_NDIFF | ELLIPSIS,
        module_relative=False,
    ), ))
Ejemplo n.º 8
0
def test_suite():
    from zope.testing.doctest import DocFileSuite
    return DocFileSuite('event.txt', package="Products.Five.tests")
def test_suite():
    return unittest.TestSuite([
        DocFileSuite('bridge.txt', package='Interface.tests'),
        ])
Ejemplo n.º 10
0
def test_suite():
    from zope.testing.doctest import DocFileSuite
    return DocFileSuite('event.txt',
                        package="Products.Five.tests",
                        setUp=setUp,
                        tearDown=testing.tearDown)