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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file logot-1.5.1.tar.gz.
File metadata
- Download URL: logot-1.5.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf83531e92059f3e6783850d355521da333ddee94a445aecc5867eb8a0db54f
|
|
| MD5 |
859ad16fdbcdb12eed30c9a7f802e891
|
|
| BLAKE2b-256 |
4eafcd1c90235d604d388116fd9dc5fa106a2feca314b426bc0b071c60ad1bb5
|
File details
Details for the file logot-1.5.1-py3-none-any.whl.
File metadata
- Download URL: logot-1.5.1-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a48e4c9e09ee6fd1e3f2032319b2038dc471d655fcce268b05d97d0531d21c1
|
|
| MD5 |
3408b00b4dd18cf272cf6400e2a22076
|
|
| BLAKE2b-256 |
634c0d17624e120c539243162fcc6d4b25506cd7eeee13fbb3fe16900059315c
|