Releases: wimglenn/pytest-structlog
Releases · wimglenn/pytest-structlog
v1.1
What's Changed
- Allow displaying/hiding the structlog settings reporting by @wimglenn in #37
- Dropped support for Python 3.7
Full Changelog: v1.0...v1.1
v1.0
Added configuration options --structlog-keep
, --structlog-evict
, and --structlog-explicit
, for when the default plugin configuration is not adequate.
v0.8
What's Changed
- Transform method_name "exception" into level "error" by @b0g3r in #31
New Contributors
Full Changelog: v0.7...v0.8
v0.7
What's Changed
- Clear contextvars between tests by @logi in #25
- Add factory method for log events to assert on for better readability by @logi in #23
- Add typing annotations by @palfrey in #27
- Python 3.7+ is required.
New Contributors
Full Changelog: v0.6...v0.7
v0.4
- Adds a "captured structlog call" section in the test report in case of failed tests
- Reverts use of
structlog.reset_defaults()
in fixture setup. This caused issues in certain non-default configurations. Users should mock out their own structlog configure call in their test suite if necessary, with a pytest auto-use fixture.
v0.3
- log capture will reset defaults in case user code has already configured structlog at library import time. closes #10
v0.2
- Add basic usage notes for the fixture (which is displayed in
pytest --fixtures
output)
- Reset logging config on teardown (thanks @karlb)