Skip to content

CliRunner fails on app with added Click command #732

Answered by svlandeg
epogrebnyak asked this question in Questions
Discussion options

You must be logged in to vote

Hi!

For this example code to work, you'll actually need to use

from click.testing import CliRunner

That will give you the required output:

 Usage: callback [OPTIONS] COMMAND [ARGS]...                                   
                                                                               
 Typer app, including Click subapp                                             
                                                                               
┌─ Options ───────────────────────────────────────────────────────────────────┐
│ --install-completion          Install completion for the current shell.     │
│ --show-completion             Show completion for the current shell, to    …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
2 participants