MCPcopy Create free account
hub / github.com/microsoft/debugpy / test_unsupported_switch

Function test_unsupported_switch

tests/debugpy/server/test_cli.py:164–168  ·  view source on GitHub ↗
(cli)

Source from the content-addressed store, hash-verified

162 assert options["config"]["subProcess"] == value
163
164def test_unsupported_switch(cli):
165 with pytest.raises(ValueError) as ex:
166 cli(["--listen", "8888", "--xyz", "123", "spam.py"])
167
168 assert "unrecognized switch --xyz" in str(ex.value)
169
170def test_unsupported_switch_from_environment(cli):
171 with pytest.raises(ValueError) as ex:

Callers

nothing calls this directly

Calls 1

cliFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…