features.environmentΒΆ
Environment file for behave tests.
AttributesΒΆ
FunctionsΒΆ
|
Wrapper that ensures uncaught exceptions fail the scenario and are logged to the HTML report. |
|
Monkey-patched step decorator that wraps the step function to fail on any exception. |
|
Monkey-patched given decorator that wraps the step function to fail on any exception. |
|
Monkey-patched when decorator that wraps the step function to fail on any exception. |
|
Monkey-patched then decorator that wraps the step function to fail on any exception. |
Module ContentsΒΆ
- features.environment.fail_on_exception(func)[source]ΒΆ
Wrapper that ensures uncaught exceptions fail the scenario and are logged to the HTML report.
- Parameters:
func (collections.abc.Callable)
- Return type:
collections.abc.Callable
- features.environment.patched_step(*args, **kwargs)[source]ΒΆ
Monkey-patched step decorator that wraps the step function to fail on any exception.
- Parameters:
args (tuple)
kwargs (dict)
- Return type:
collections.abc.Callable
- features.environment.patched_given(*args, **kwargs)[source]ΒΆ
Monkey-patched given decorator that wraps the step function to fail on any exception.
- Parameters:
args (tuple)
kwargs (dict)
- Return type:
collections.abc.Callable
- features.environment.patched_when(*args, **kwargs)[source]ΒΆ
Monkey-patched when decorator that wraps the step function to fail on any exception.
- Parameters:
args (tuple)
kwargs (dict)
- Return type:
collections.abc.Callable