wimglenn / pytest-structlog

Structured logging assertions
MIT License
54 stars 6 forks source link

v0.4 #16

Closed wimglenn closed 3 years ago

wimglenn commented 3 years ago

dump out events on test failures. no longer reset_defaults in setup, since it caused a regression in #14. users should mock out their own structlog configuration in tests if necessary

CarlosEduR commented 1 year ago

@wimglenn is there any examples of how to mock the structlog configuration (disabling cache_logger_on_first_use) when this is done by some library outside the current project?

wimglenn commented 1 year ago

@CarlosEduR You would mock it out the same way, regardless of whether it is in 1st party code or 3rd party code.