Package animio :: Module setup :: Class _RegressionMixin
[hide private]
[frames] | no frames]

Class _RegressionMixin

source code

object --+
         |
        _RegressionMixin
Known Subclasses:

Provides a simple interface allowing to perform a regression test
Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_find_test_modules(self, root_dir)
Returns: list of files within the root_dir which appear to be containing tests.
source code
 
finalize_options(self) source code
 
post_regression_test(self, testexecutable, test_root_dir)
Perform a regression test for the maya version's the user supplied.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
adjust_user_options(cls, user_options) source code
Class Variables [hide private]
  test_sub_dir = 'test'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_find_test_modules(self, root_dir)

source code 
Returns:
list of files within the root_dir which appear to be containing tests. Explicit selection is required if we are byte-compiling modules, nose skips .pyc even if there is no .py file ;)

post_regression_test(self, testexecutable, test_root_dir)

source code 
Perform a regression test for the maya version's the user supplied.
:param testexecutable: path to the tmrv-compatible executable - it is 
        expected to be inside a tree which allows the project to put itself into the path.
:param root_dir: root directory under which tests can be found
:raise EnvironmentError: if started process returned non-0