logot.unittest#
Integration API for unittest.
See also
See Using with unittest usage guide.
API reference#
- class logot.unittest.LogotTestCase(methodName='runTest')#
A
unittest.TestCasesubclass with automatic log capturing.- logot: Logot#
An initialized
logot.Logotinstance with log capturing enabled.Use this to make log assertions in your tests.
- logot_level: ClassVar[str | int] = 'DEBUG'#
The
levelused for automatic log capturing.Defaults to
logot.Logot.DEFAULT_LEVEL.
- logot_name: ClassVar[str | None] = None#
The
nameused for automatic log capturing.Defaults to
logot.Logot.DEFAULT_NAME.
- logot_capturer: ClassVar[Callable[[], Capturer]] = logot.logging.LoggingCapturer#
The default
capturerforLogotTestCase.logot.Defaults to
logot.Logot.DEFAULT_CAPTURER.
- logot_timeout: ClassVar[float] = 3.0#
The default
timeout(in seconds) forLogotTestCase.logot.Defaults to
logot.Logot.DEFAULT_TIMEOUT.
- logot_async_waiter: ClassVar[Callable[[], AsyncWaiter]] = logot.asyncio.AsyncioWaiter#
The default
async_waiterforLogotTestCase.logot.Defaults to
logot.Logot.DEFAULT_ASYNC_WAITER.