@@ -175,7 +175,7 @@ def test_style_table(command, expected):
175175 assert output == expected
176176
177177
178- class MultiCLI (click .MultiCommand ):
178+ class GroupCLI (click .Group ):
179179 def list_commands (self , ctx ):
180180 return ["single-command" ]
181181
@@ -184,26 +184,26 @@ def get_command(self, ctx, name):
184184
185185
186186@pytest .mark .parametrize (
187- "multi " ,
187+ "group " ,
188188 [
189- pytest .param (MultiCLI ( "multi " , help = "Multi help" ), id = "explicit-name" ),
190- pytest .param (MultiCLI (help = "Multi help" ), id = "no-name" ),
189+ pytest .param (GroupCLI ( "group " , help = "Group help" ), id = "explicit-name" ),
190+ pytest .param (GroupCLI (help = "Group help" ), id = "no-name" ),
191191 ],
192192)
193- def test_custom_multicommand ( multi ):
193+ def test_custom_group ( group ):
194194 """
195- Custom `MultiCommand ` objects are supported (i.e. not just `Group` multi-commands) .
195+ Custom `Group ` objects are supported.
196196 """
197197 expected = dedent (
198198 """
199- # multi
199+ # group
200200
201- Multi help
201+ Group help
202202
203203 **Usage:**
204204
205205 ```text
206- multi [OPTIONS] COMMAND [ARGS]...
206+ group [OPTIONS] COMMAND [ARGS]...
207207 ```
208208
209209 **Options:**
@@ -219,7 +219,7 @@ def test_custom_multicommand(multi):
219219 **Usage:**
220220
221221 ```text
222- multi hello [OPTIONS]
222+ group hello [OPTIONS]
223223 ```
224224
225225 **Options:**
@@ -231,31 +231,31 @@ def test_custom_multicommand(multi):
231231 """
232232 ).lstrip ()
233233
234- output = "\n " .join (make_command_docs ("multi " , multi ))
234+ output = "\n " .join (make_command_docs ("group " , group ))
235235 assert output == expected
236236
237237
238238@pytest .mark .parametrize (
239- "multi " ,
239+ "group " ,
240240 [
241- pytest .param (MultiCLI ( "multi " , help = "Multi help" ), id = "explicit-name" ),
242- pytest .param (MultiCLI (help = "Multi help" ), id = "no-name" ),
241+ pytest .param (GroupCLI ( "group " , help = "Group help" ), id = "explicit-name" ),
242+ pytest .param (GroupCLI (help = "Group help" ), id = "no-name" ),
243243 ],
244244)
245- def test_custom_multicommand_with_list_subcommands ( multi ):
245+ def test_custom_group_with_list_subcommands ( group ):
246246 """
247- Custom `MultiCommand ` objects are supported (i.e. not just `Group` multi-commands) .
247+ Custom `Group ` objects are supported.
248248 """
249249 expected = dedent (
250250 """
251- # multi
251+ # group
252252
253- Multi help
253+ Group help
254254
255255 **Usage:**
256256
257257 ```text
258- multi [OPTIONS] COMMAND [ARGS]...
258+ group [OPTIONS] COMMAND [ARGS]...
259259 ```
260260
261261 **Options:**
@@ -275,7 +275,7 @@ def test_custom_multicommand_with_list_subcommands(multi):
275275 **Usage:**
276276
277277 ```text
278- multi hello [OPTIONS]
278+ group hello [OPTIONS]
279279 ```
280280
281281 **Options:**
@@ -287,7 +287,7 @@ def test_custom_multicommand_with_list_subcommands(multi):
287287 """
288288 ).lstrip ()
289289
290- output = "\n " .join (make_command_docs ("multi " , multi , list_subcommands = True ))
290+ output = "\n " .join (make_command_docs ("group " , group , list_subcommands = True ))
291291 assert output == expected
292292
293293
0 commit comments