Pytest-structlog

Latest version: v1.1

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.5

- Better default behavior when we can detect that the code under test was using a [`PositionalArgumentsFormatter`](https://www.structlog.org/en/stable/api.html#structlog.stdlib.PositionalArgumentsFormatter).

0.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.

0.3

- log capture will reset defaults in case user code has already configured structlog at library import time. closes https://github.com/wimglenn/pytest-structlog/issues/10

0.2

- Add basic usage notes for the fixture (which is displayed in `pytest --fixtures` output)
- Reset logging config on teardown (thanks karlb)

0.1

Initial release.

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.