fluidasserts.utils.decorators module

This module enables decorators for registry and usage tracking purposes.

fluidasserts.utils.decorators.api(risk, kind, **kwargs)

Pre-processing and post-processing of the function results.

Return type

typing.Callable

fluidasserts.utils.decorators.track(func)

Log and register function usage.

Return type

typing.Callable

fluidasserts.utils.decorators.unknown_if(*errors)

Return UNKNOWN if a function raise one of the provided errors.

Return type

typing.Callable