Module test_helpers
4. exc_hook
The test_helpers module provides classes to use during testing.
- class exc_hook.ExcHook(monkeypatch)
Context manager exception hook.
Initialize the ExcHook class instance.
- mock_threading_excepthook(args)
Build and save the exception.
- Parameters:
args (
Any) – contains: args.exc_type: Optional[Type[BaseException]] args.exc_value: Optional[BaseException] args.exc_traceback: Optional[TracebackType]- Return type:
None
- raise_exc_if_one()
Raise an error if we have one.
- Raises:
Exception – exc_msg
- Return type:
None