Replies: 1 comment 2 replies
-
Hi @Ksauder,
That's what I would do, and should work every time except in rare cases I think. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a custom plugin and I'd like to print certain important status messages out to the terminal from hooks and fixtures. I am currently grabbing the terminalreporter plugin and using write_line(), which seems to work sometimes and not others. I've also tried grabbing the capturemanager and calling my write_line() method within a global_and_fixture_disabled() context. This doesn't work if I put the context within my wrapper method for write_line, but does work if I use the context directly within the hookimpl I'm working in.
How should this work in this scenario:
Willing to accept the answer: 'you're doing everything wrong'.
Beta Was this translation helpful? Give feedback.
All reactions