示例#1
0
def test_suite():
    m = doctest.Manuel()
    m += compat.Manuel()
    m += capture.Manuel()
    m += Files('tempdir')
    return TestSuite(m,
                     setUp=setUp,
                     tearDown=tearDown,
                     *glob(join(path_to_your_docs, '*.txt')))
示例#2
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),
    ))
示例#4
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
示例#5
0
def test_suite():
    m = doctest.Manuel(optionflags=REPORT_NDIFF | ELLIPSIS, checker=compat.DocTestChecker())
    m += compat.Manuel()
    m += capture.Manuel()
    return TestSuite(m, *tests)
示例#6
0
def test_suite():
    m = doctest.Manuel(optionflags=REPORT_NDIFF | ELLIPSIS)
    return TestSuite(m, *tests, setUp=setUp, tearDown=tearDown)
示例#7
0
def test_suite():
    m = doctest.Manuel(optionflags=REPORT_NDIFF | ELLIPSIS,
                       checker=DocTestChecker())
    m += codeblock.Manuel()
    return TestSuite(m, setUp=set_up, *tests)
示例#8
0
文件: test_docs.py 项目: asqui/mush
def test_suite():
    m = doctest.Manuel(optionflags=REPORT_NDIFF | ELLIPSIS)
    m += codeblock.Manuel()
    m += capture.Manuel()
    return TestSuite(m, *tests)
示例#9
0
def test_suite():
    m = doctest.Manuel(optionflags=REPORT_NDIFF | ELLIPSIS,
                       checker=compat.DocTestChecker())
    return TestSuite(m, *tests, setUp=setUp, tearDown=tearDown)