extensible.extensible#
Functions
|
By default, post methods do not run if an error occurred in the center stage unless they are decorated with this decorator. |
|
Classes
|
|
|
|
|
All post- hooks are executed as the |
|
All pre- hooks are executed as the |
Exceptions
- exception extensible.extensible.FixtureError#
Bases:
KeyError
- class extensible.extensible.PreHookContextManager(extensible: Extensible, method: Callable)#
Bases:
objectAll pre- hooks are executed as the
__enter__()method of this context manager within anExitStack.
- extensible.extensible.always(method)#
By default, post methods do not run if an error occurred in the center stage unless they are decorated with this decorator. When decorated, they run whether an error occurred or not.
Post methods decorated with
always()should have default values for all their fixture parameters, as exceptions might result in missing fixtures.
- class extensible.extensible.PostHookContextManager(extensible: Extensible, method: Callable)#
Bases:
AbstractContextManagerAll post- hooks are executed as the
__exit__()method of this context manager within anExitStack. The post- hook calls are wrapped in a stage that injects'exc_type','exc_value', and'traceback'hooks that follow the same protocol as standard python__exit__methods. In particular, they will all beNoneif no exception occurred during the center stage and non-Noneotherwise.