MCPcopy
hub / github.com/pallets/click / test_group_from_list

Function test_group_from_list

tests/test_basic.py:98–107  ·  view source on GitHub ↗

A Group can be built with a list of commands.

(runner)

Source from the content-addressed store, hash-verified

96
97
98def test_group_from_list(runner):
99 """A Group can be built with a list of commands."""
100
101 @click.command()
102 def sub():
103 click.echo("sub", nl=False)
104
105 cli = click.Group(commands=[sub])
106 result = runner.invoke(cli, ["sub"])
107 assert result.output == "sub"
108
109
110@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected