fatf.utils.testing.warnings
.is_warning_class_displayed¶
-
fatf.utils.testing.warnings.
is_warning_class_displayed
(warning_class: Warning, warning_module: Optional[str] = None) → bool[source]¶ Checks whether a warning of a given class will be shown to the user.
- Parameters
- warning_classWarning
A warning class to be checked.
- warning_modulestring, optional (default=’fatf.dummy’)
The module string from which the warning is emitted. If not given, this defaults to
fatf.dummy
.
- Returns
- is_displayedbool
True if the warning class will be displayed, False otherwise.