You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Set the catch_exceptions value for the whole runner #2817
I always pass catch_exceptions=False for all my test suites.
It would be convenient to configure this value once for all in CLIRunner for example.
For example, we could add a CLIRunner.catch_exceptions parameter, and make invoke use that value if not directly passed in parameter of invoke. Then I would just have to put the runner in a pytest fixture and that would do the thing for me.
Activity
Rowlando13 commentedon Dec 8, 2024
Look like catch_exceptions=True is the default option, so you should not need to pass it in.

azmeuk commentedon Dec 8, 2024
My bad, I meant the other way. I edit the OP.
davidism commentedon Dec 8, 2024
Might make more sense to add the param to
__init__, and default toNoneininvoke. If it'sNone, it will use whatever was set in__init__.Add CliRunner default `catch_exceptions` parameter. (pallets#2817)
Add CliRunner default `catch_exceptions` parameter. (pallets#2817)