示例#1
0
def additional_tests():
    """Interface to setuptools.py test runner."""
    initialize_logging()
    suite = unittest.TestSuite()
    for test_case in make_test_cases():
        suite.addTest(test_case)
    return suite
示例#2
0
def additional_tests():
    """Interface to setuptools.py test runner."""
    initialize_logging()
    suite = unittest.TestSuite()
    for test_case in make_test_cases():
        suite.addTest(test_case)
    return suite
示例#3
0
def additional_tests():
    "Run the doc tests (README.rst and docs/*, if any exist)"
    initialize_logging()
    doctest_files = [
        os.path.abspath(resource_filename('flufl.bounce', 'README.rst'))]
    if resource_exists('flufl.bounce', 'docs'):
        for name in resource_listdir('flufl.bounce', 'docs'):
            if os.path.splitext(name)[1] in ('.txt', '.rst'):
                doctest_files.append(
                    os.path.abspath(
                        resource_filename('flufl.bounce', 'docs/%s' % name)))
    kwargs = dict(module_relative=False,
                  optionflags=DOCTEST_FLAGS,
                  setUp=setup,
                  )
    atexit.register(cleanup_resources)
    return unittest.TestSuite((
        doctest.DocFileSuite(*doctest_files, **kwargs)))
示例#4
0
def additional_tests():
    "Run the doc tests (README.rst and docs/*, if any exist)"
    initialize_logging()
    doctest_files = [
        os.path.abspath(resource_filename('flufl.bounce', 'README.rst'))
    ]
    if resource_exists('flufl.bounce', 'docs'):
        for name in resource_listdir('flufl.bounce', 'docs'):
            if os.path.splitext(name)[1] in ('.txt', '.rst'):
                doctest_files.append(
                    os.path.abspath(
                        resource_filename('flufl.bounce', 'docs/%s' % name)))
    kwargs = dict(
        module_relative=False,
        optionflags=DOCTEST_FLAGS,
        setUp=setup,
    )
    atexit.register(cleanup_resources)
    return unittest.TestSuite((doctest.DocFileSuite(*doctest_files, **kwargs)))