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 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:
- Log message matching
- Log pattern matching
- Log capturing
- Using with
pytest
- Using with
unittest
- Installing
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
Built Distribution
File details
Details for the file logot-1.4.0.tar.gz
.
File metadata
- Download URL: logot-1.4.0.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a42da87594c00c7252d4808ed35e66056dee880a31944bf2b8adb7d24385dd7a
|
|
MD5 |
3a37406f857f3ce6cc3d715a19344e17
|
|
BLAKE2b-256 |
85e8696a5b0721f88be2369694fa91c792d910636fa0f6a7a5444d6ecbed645a
|
File details
Details for the file logot-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: logot-1.4.0-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
86f6d5e289cef1241634faa6fc011b33c442fd95446a6434a67493e7d1f24c7a
|
|
MD5 |
e33dbaebcf796ec9f87076e8edc02e03
|
|
BLAKE2b-256 |
fb6d801c2019448b42fa47b24a77662f9dfcc6e625820e4a86e5dabcfeadc6ca
|