features.environmentΒΆ

Environment file for behave tests.

AttributesΒΆ

FunctionsΒΆ

fail_on_exception(func)

Wrapper that ensures uncaught exceptions fail the scenario and are logged to the HTML report.

patched_step(*args, **kwargs)

Monkey-patched step decorator that wraps the step function to fail on any exception.

patched_given(*args, **kwargs)

Monkey-patched given decorator that wraps the step function to fail on any exception.

patched_when(*args, **kwargs)

Monkey-patched when decorator that wraps the step function to fail on any exception.

patched_then(*args, **kwargs)

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.original_step[source]ΒΆ
features.environment.original_given[source]ΒΆ
features.environment.original_when[source]ΒΆ
features.environment.original_then[source]ΒΆ
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

features.environment.patched_then(*args, **kwargs)[source]ΒΆ

Monkey-patched then decorator that wraps the step function to fail on any exception.

Parameters:
  • args (tuple)

  • kwargs (dict)

Return type:

collections.abc.Callable

features.environment.step[source]ΒΆ
features.environment.given[source]ΒΆ
features.environment.when[source]ΒΆ
features.environment.then[source]ΒΆ