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

Function test_full_complete

tests/test_shell_completion.py:369–373  ·  view source on GitHub ↗
(runner, shell, env, expect)

Source from the content-addressed store, hash-verified

367)
368@pytest.mark.usefixtures("_patch_for_completion")
369def test_full_complete(runner, shell, env, expect):
370 cli = Group("cli", commands=[Command("a"), Command("b", help="bee")])
371 env["_CLI_COMPLETE"] = f"{shell}_complete"
372 result = runner.invoke(cli, env=env)
373 assert result.output == expect
374
375
376def test_source_uses_lf_line_endings(monkeypatch):

Callers

nothing calls this directly

Calls 3

GroupClass · 0.90
CommandClass · 0.90
invokeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…