Skip to content

Releases: wimglenn/pytest-structlog

v1.1

25 Jul 02:59
9d42860
Compare
Choose a tag to compare

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

09 Jun 19:39
4aa7642
Compare
Choose a tag to compare

Added configuration options --structlog-keep, --structlog-evict, and --structlog-explicit, for when the default plugin configuration is not adequate.

v0.9

30 May 12:02
d862294
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.8...v0.9

v0.8

13 Mar 02:27
9ef7f47
Compare
Choose a tag to compare

What's Changed

  • Transform method_name "exception" into level "error" by @b0g3r in #31

New Contributors

  • @b0g3r made their first contribution in #31

Full Changelog: v0.7...v0.8

v0.7

04 Feb 05:20
e77f947
Compare
Choose a tag to compare

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

18 Dec 02:19
feb680c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5...v0.6

v0.5

21 Sep 01:13
c6af373
Compare
Choose a tag to compare

v0.4

26 Mar 17:28
b715180
Compare
Choose a tag to compare
  • 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

16 Jul 16:46
2a19acb
Compare
Choose a tag to compare
  • log capture will reset defaults in case user code has already configured structlog at library import time. closes #10

v0.2

22 Oct 03:57
6aeafac
Compare
Choose a tag to compare
  • Add basic usage notes for the fixture (which is displayed in pytest --fixtures output)
  • Reset logging config on teardown (thanks @karlb)