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
provides first-class integrations for popular testing (e.g. pytest
, unittest
), asynchronous (e.g. asyncio
, trio
) and logging frameworks (e.g. logging
, loguru
). 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-0.3.5.tar.gz
(13.3 kB
view details)
Built Distribution
logot-0.3.5-py3-none-any.whl
(19.1 kB
view details)
File details
Details for the file logot-0.3.5.tar.gz
.
File metadata
- Download URL: logot-0.3.5.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbba56a62fddb4c63f6813d1bed77e54c092c8765cdf81cdcfbcd1ee1906034b |
|
MD5 | 1ea12f83e2292c98c1f173c0f203e768 |
|
BLAKE2b-256 | a67913d26e939e92f867a0608ae78ec4df5692597aead2a173fa6cc7d5c71b8f |
Provenance
File details
Details for the file logot-0.3.5-py3-none-any.whl
.
File metadata
- Download URL: logot-0.3.5-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9c160285924d6f914658c5929fa18903d14d59571f2ad5446641d9eb15425f9 |
|
MD5 | 92b043971ccdd7f99d001f3ac3482406 |
|
BLAKE2b-256 | 1ef9fd264ae8ce7c06c2c478f04144addad93c206d60cb9624fc498806701765 |