-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How do you assert the output? #351
Comments
This is a bit of a tricky area. At the point where the fixture executes, hasn't An idea that might work is this: Inside your fixture, you could re-assign
The scope of the fixture would probably need to be |
Hm... Tried https://pypi.org/project/capturer/ but got an error with Same issue as reported here: #339 |
FWIW here's a hacky setup I'm using. Instead of calling the functions directly in the tests, I wrap them with a utility function that temporarily sets stdout to a |
I've tried to set up my own fixture for capturing the output:
But for this breaks the capture-output functionality of Ward. Is there a standard way of asserting the stdout + stderr in tests and not breaking anything?
The text was updated successfully, but these errors were encountered: