Skip to content

Commit af77e66

Browse files
committed
Click 7 changes how command names are generated.
Click generates CLI command names from function names. Previously a comman function like 'def command_function()' would generate a CLI command called 'command_function'. As of the commit listed below the CLI commad is now called 'command-function'. pallets/click@5d1df0e
1 parent bb55d96 commit af77e66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_plugins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ def sub_cli_plugins():
120120
"""Sub CLI with plugins."""
121121
pass
122122

123-
result = runner.invoke(good_cli, ['sub_cli_plugins'])
123+
result = runner.invoke(good_cli, ['sub-cli-plugins'])
124124
assert result.exit_code is 0
125125
for ep in iter_entry_points('_test_click_plugins.test_plugins'):
126126
assert ep.name in result.output
127127

128128
# Execute one of the sub-group's commands
129-
result = runner.invoke(good_cli, ['sub_cli_plugins', 'cmd1', 'something'])
129+
result = runner.invoke(good_cli, ['sub-cli-plugins', 'cmd1', 'something'])
130130
assert result.exit_code is 0
131131
assert result.output.strip() == 'passed'
132132

0 commit comments

Comments
 (0)