Jump to >

reviewbot.tools.testing.decorators

Decorators for tool tests.

New in version 3.0.

Functions

integration_test(**kwargs)

Decorate a unit test and mark it as an integration test.

simulation_test(**kwargs)

Decorate a unit test and mark it as a simulation test.

integration_test(**kwargs)[source]

Decorate a unit test and mark it as an integration test.

The arguments provided to this decorator will be passed to setup_integration_test().

New in version 3.0.

Parameters

**kwargs (dict) – Keyword arguments to pass during setup.

Returns

The new unit test function.

Return type

callable

simulation_test(**kwargs)[source]

Decorate a unit test and mark it as a simulation test.

The arguments provided to this decorator will be passed to setup_simulation_test().

New in version 3.0.

Parameters

**kwargs (dict) – Keyword arguments to pass during setup.

Returns

The new unit test function.

Return type

callable