Log-based testing ๐Ÿชต

February 24, 2024 ยท View on GitHub

Poetry Build Codecov Docs PyPI version Supported Python versions

logot makes it easy to test whether your code is logging correctly:

from logot import Logot, logged

def test_something(logot: Logot) -> None:
    do_something()
    logot.assert_logged(logged.info("Something was done"))

logot integrates with popular testing frameworks (e.g. pytest, unittest). It supports many 3rd-party asynchronous and logging frameworks, and can be extended to support many more. ๐Ÿ’ช

Documentation ๐Ÿ“–

Full documentation is published on Read the Docs. Learn more about logot with the following guides:

Bugs / feedback ๐Ÿ›

Issue tracking is hosted on GitHub.

Changelog ๐Ÿ—๏ธ

Release notes are published on GitHub.

License โš–๏ธ

logot is published as open-source software under the MIT license.