Replies: 1 comment
-
I asked the question in Stackoverflow: https://stackoverflow.com/questions/78274221/use-caplog-in-autouse-fixture-in-pytest |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I'd like to wrap all my tests with a fixture where the logs are checked for error messages. I tried this:
But caplog.text is always empty. I assume, caplog is cleared after the test and before the fixture actually checks the logs.
How can I make this work?
Beta Was this translation helpful? Give feedback.
All reactions