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

Function test_boolean_flag

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

Source from the content-addressed store, hash-verified

247 ),
248)
249def test_boolean_flag(runner, default, args, expect):
250 @click.command()
251 @click.option("--f", is_flag=True, default=default)
252 def cli(f):
253 return f
254
255 result = runner.invoke(cli, args, standalone_mode=False)
256 assert result.return_value is expect
257
258
259@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…