Package mvpa :: Package tests
[hide private]
[frames] | no frames]

Package tests

source code

Unit test interface for PyMVPA
Submodules [hide private]

Functions [hide private]
 
collectTestSuites()
Runs over all tests it knows and composes a dictionary with test suite instances as values and IDs as keys.
source code
 
run(limit=None, verbosity=None)
Runs the full or a subset of the PyMVPA unittest suite.
source code

Imports: unittest, np, _random_seed, cfg, externals, warning


Function Details [hide private]

collectTestSuites()

source code 
Runs over all tests it knows and composes a dictionary with test suite
instances as values and IDs as keys. IDs are the filenames of the unittest
without '.py' extension and 'test_' prefix.

During collection this function will run a full and verbose test for all
known externals.

run(limit=None, verbosity=None)

source code 
Runs the full or a subset of the PyMVPA unittest suite.
Parameters:
  • limit, None, |, list - If None, the full test suite is run. Alternatively, a list with test IDs can be provides. IDs are the base filenames of the test implementation, e.g. the ID for the suite in 'mvpa/tests/test_niftidataset.py' is 'niftidataset'.
  • verbosity, None, |, int - Verbosity of unittests execution. If None, controlled by PyMVPA configuration tests/verbosity. Values higher than 2 enable all Python, NumPy and PyMVPA warnings