Example #1
0
def test_suite():
    m = doctest.Manuel(optionflags=REPORT_NDIFF | ELLIPSIS)
    m += codeblock.Manuel()
    return TestSuite(
        m,
        join(docs_dir, 'mailinglogger.txt'),
        join(docs_dir, 'summarisinglogger.txt'),
        join(docs_dir, 'subjectformatter.txt'),
        join(docs_dir, 'html.txt'),
        setUp=setUp,
        tearDown=tearDown,
    )
def test_suite():
    try:
        import ZConfig
    except ImportError:
        # no ZConfig
        if os.environ.get('mailinglogger_env') == 'zconfig':
            raise
        return unittest.TestSuite()
    m = doctest.Manuel(optionflags=REPORT_NDIFF | ELLIPSIS)
    m += codeblock.Manuel()
    m += Files('tempdir')
    return unittest.TestSuite((
        TestSuite(m,
                  os.path.join(docs_dir, 'zconfig.txt'),
                  setUp=setUp,
                  tearDown=tearDown),
        unittest.makeSuite(ZConfigTests),
    ))
Example #3
0
def test_suite():
    m = doctest.Manuel(optionflags=REPORT_NDIFF | ELLIPSIS, checker=checker)
    m += codeblock.Manuel()
    m += capture.Manuel()

    # overkill, but makes sure we test all files!
    buildout = []
    normal = []
    for p in glob(join(dirname(__file__), pardir, pardir, 'docs', '*.txt')):
        if p.endswith('installation.txt'):
            buildout.append(p)
        else:
            normal.append(p)

    s = TestSuite()
    s.addTests(MTestSuite(m, setUp=setUp, tearDown=buildoutTearDown,
                          *buildout))
    s.addTests(MTestSuite(m, *normal))
    return s
Example #4
0
def test_suite():
    m = doctest.Manuel(optionflags=REPORT_NDIFF | ELLIPSIS,
                       checker=DocTestChecker())
    m += codeblock.Manuel()
    return TestSuite(m, setUp=set_up, *tests)
Example #5
0
def test_suite():
    m = doctest.Manuel(optionflags=REPORT_NDIFF | ELLIPSIS)
    m += codeblock.Manuel()
    m += capture.Manuel()
    return TestSuite(m, *tests)