Closed karlb closed 5 years ago
Hi @karlb, your change looks fine, but I'm curious what is the use-case? Do you log some events during teardown?
This has been released in v0.2 https://github.com/wimglenn/pytest-structlog/releases/tag/v0.2
After the log
fixture has been used, the capsys
fixture did not behave as expected. So introducing pytest-structlog and using it only for some tests was breaking other tests.
The
log
fixture should not have any side effects on other tests. Now it only changes the log handling during the test instead of keeping the change for all following tests.