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

Function test_duplicate_switch

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

Source from the content-addressed store, hash-verified

200 assert "missing target" in str(ex.value)
201
202def test_duplicate_switch(cli):
203 with pytest.raises(ValueError) as ex:
204 cli(["--listen", "8888", "--listen", "9999", "spam.py"])
205
206 assert "duplicate switch on command line: --listen" in str(ex.value)
207
208def test_duplicate_switch_from_environment(cli):
209 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…