`CliRunner.invoke` takes `mix_stderr` which does nothing
See original GitHub issuemix_stderr
is a parameter of CliRunner.invoke
.
This is not documented in the docstring as a :param
.
Simply reading the code (which I did after trying this and seeing no output) shows that this parameter is not used.
mix_stderr
works on CliRunner.__init__
.
The mix_stderr
parameter should be removed, or changed to work and get documented.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Testing Click Applications — Click Documentation (7.x)
The basic functionality for testing Click applications is the CliRunner which can invoke commands as command line scripts. The CliRunner.invoke() method ...
Read more >Why is the `return_value` for CliRunner().invoke(...) object null?
Click command handlers do not return a value unless you use: standalone_mode=False . You can do that during testing like:
Read more >Click Documentation - Read the Docs
click is a. Python package for creating beautiful command line interfaces in a composable way with as little amount of code as necessary....
Read more >Click - The Blue Book - GitHub Pages
The basic functionality for testing Click applications is the CliRunner which can invoke commands as command line scripts. The CliRunner.invoke() method ...
Read more >Testing a Click app with streaming input - Simon Willison: TIL
... which ruled out the usual CliRunner.invoke() testing tool since ... on each record # Can't use CliRunner().invoke() here bacuse we need ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I also just ran into this issue and was confused why stderr and stdout were mixed.
Since it’s easy to set this on the CliRunner object I endorse the #1442
Hi Adam, you seem to have a specific idea in mind that we’re having trouble understanding. If this is important to you and you have the time, it would probably be easier to create a PR fixing the issue rather than going back and forth more.