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.
Release files for logot 1.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| logot-1.7.0.tar.gz | 15.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| logot-1.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.4 kB
Release files / logot-1.7.0.tar.gz
| Download URL | logot-1.7.0.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b917189ebe1fb2ba298014f886fa72ff85f75be8d5a48d94c138e14b4f31fbb8
|
|
BLAKE2b-256 checksum How to use checksums |
7b55f0080f7c1b997166244833dac8d293d2b66e68aa250c242010b67db8f096
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.3 CPython/3.12.3 Linux/6.17.0-1008-azure
|
Release files / logot-1.7.0-py3-none-any.whl
| Download URL | logot-1.7.0-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c7a8b561d22f0d08dcf3524359507d61400cb9ee61dc921b73b965c60fbab0c
|
|
BLAKE2b-256 checksum How to use checksums |
16ecc20720e6d4055dd59a37ff84ed204870e07e042cd24d97736ac6910dd190
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.3 CPython/3.12.3 Linux/6.17.0-1008-azure
|