fmartingr
/
jeeves
Archived
1
0
Fork 0
This repository has been archived on 2021-02-14. You can view files and clone it, but cannot push or open issues or pull requests.
jeeves/jeeves/conftest.py

28 lines
642 B
Python

from jeeves.core.actions.stub import (
StubSuccessAction,
StubNonSuccessAction,
StubParametersAction,
StubNoParametersAction,
StubUncaughtExceptionAction,
)
from jeeves.core.actions import PROVIDED_ACTIONS
from jeeves.core.registry import ActionRegistry
def pytest_runtest_setup(item):
for action in [
StubSuccessAction,
StubNonSuccessAction,
StubParametersAction,
StubNoParametersAction,
StubUncaughtExceptionAction,
]:
PROVIDED_ACTIONS[action.id] = action
ActionRegistry.autodiscover()
def pytest_runtest_teardown(item):
ActionRegistry.actions = {}
#