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

Function test_boolean_switch

tests/test_basic.py:226–233  ·  view source on GitHub ↗
(runner, args, default, expect)

Source from the content-addressed store, hash-verified

224 ],
225)
226def test_boolean_switch(runner, args, default, expect):
227 @click.command()
228 @click.option("--on/--off", default=default)
229 def cli(on):
230 return on
231
232 result = runner.invoke(cli, args, standalone_mode=False)
233 assert result.return_value is expect
234
235
236@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected