Testing related decorators for use with twisted.trial.
The decorators in this files are designed to follow the same API as those in the decorators module (in this same directory). But they can be used with twisted.trial
Can numpy be imported? Returns true if numpy does NOT import.
This is used to make a decorator to skip tests that require numpy to be available, but delay the ‘import numpy’ to test execution time.
Create a decorator that marks a test function for skipping.
This is a decorator factory that returns a decorator that will cause tests to be skipped.
Parameters : | msg : str
|
---|---|
Returns : | decorator : function
|
Create a decorator that marks a test function for skipping.
The is a decorator factory that returns a decorator that will conditionally skip a test based on the value of skip_condition. The skip_condition argument can either be a boolean or a callable that returns a boolean.
Parameters : | skip_condition : boolean or callable
msg : str
|
---|---|
Returns : | decorator : function
|