atelier.test

Defines an extended TestCase with methods to launch a subprocess.

(This module’s source code is available here.)

Functions

interpreter_args()

make_docs_suite(docs_root[, include, …])

Discover the doc files in specified directory docs_root and below and return a test suite which tests them all, each one in a separate subprocess.

Classes

DocTestCase(filename[, addenv])

TestCase([methodName])

Deserves a docstring

atelier.test.make_docs_suite(docs_root, include='*.rst', exclude=None, addenv=None)

Discover the doc files in specified directory docs_root and below and return a test suite which tests them all, each one in a separate subprocess.

include is a filename pattern of the files to include. Default is ‘*.rst’.

exclude is an optional filename pattern of the files to exclude. Default is None.

addenv is an optional dictionary with additional environment variables to be set in the subprocess. Default is None.

The tests are sorted alphabeticallly in order to avoid surprises when some doctest inadvertantly modifies the database.

class atelier.test.TestCase(methodName='runTest')

Bases: unittest.case.TestCase, atelier.utils.SubProcessParent

Deserves a docstring

project_root

alias of builtins.NotImplementedError

run_packages_test(declared_packages)

Checks whether the packages parameter to setup seems correct.

run_simple_doctests(filenames, **kw)

run doctest of given file in a subprocess

run_unittest(filename, **kw)

run unittest of given file in a subprocess