Inheritance diagram for nipy.neurospin.utils.nosetester:
Nose test running
Implements test and bench functions for modules.
Bases: object
Nose test runner.
Usage: NoseTester(<package>).test()
<package> is package path or module Default for package is None. A value of None finds calling module path.
Typical call is from module __init__, and corresponds to this:
test = NoseTester().test
This class is made available as numpy.testing.Tester:
from scipy.testing import Tester test = Tester().test
Test class init
Parameters: | package : string or module
|
---|
Run benchmarks for module using nose
Parameters: | label : {‘fast’, ‘full’, ‘’, attribute identifer}
verbose : integer
extra_argv : list
|
---|
Run tests for module using nose
Parameters: | label : {‘fast’, ‘full’, ‘’, attribute identifer}
verbose : integer
extra_argv : list
doctests : boolean
coverage : boolean
|
---|
Make function raise SkipTest exception if skip_condition is true
Parameters: | skip_condition : bool
|
---|---|
Returns: | decorator : function
|
Notes
You will see from the code that we had to further decorate the decorator with the nose.tools.make_decorator function in order to transmit function name, and various other metadata.