logot.unittest
¶
Integration API for unittest
.
See also
See Using with unittest usage guide.
API reference¶
- class logot.unittest.LogotTestCase(methodName='runTest')¶
A
unittest.TestCase
subclass with automatic log capturing.- logot: Logot¶
An initialized
logot.Logot
instance with log capturing enabled.Use this to make log assertions in your tests.
- logot_level: ClassVar[str | int] = 'DEBUG'¶
The
level
used for automatic log capturing.Defaults to
logot.Logot.DEFAULT_LEVEL
.
- logot_name: ClassVar[str | None] = None¶
The
name
used for automatic log capturing.Defaults to
logot.Logot.DEFAULT_NAME
.
- logot_capturer: ClassVar[Callable[[], Capturer]] = logot.logging.LoggingCapturer¶
The default
capturer
forLogotTestCase.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_waiter
forLogotTestCase.logot
.Defaults to
logot.Logot.DEFAULT_ASYNC_WAITER
.