question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`CliRunner.invoke` takes `mix_stderr` which does nothing

See original GitHub issue

mix_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:closed
  • Created 4 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
miker985commented, Jan 16, 2020

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

1reaction
davidismcommented, Dec 11, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found