Test whether your code is logging correctly 🪵
Project description
Log-based testing 🪵
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 (e.g. pytest
, unittest
), asynchronous (e.g. asyncio
, trio
) and logging frameworks (e.g. logging
, loguru
, structlog
). It can be extended to support many others. 💪
Documentation 📖
Full documentation is published on Read the Docs.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logot-1.1.0.tar.gz
(14.4 kB
view hashes)
Built Distribution
logot-1.1.0-py3-none-any.whl
(20.7 kB
view hashes)