(cli)
| 200 | assert "missing target" in str(ex.value) |
| 201 | |
| 202 | def 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 | |
| 208 | def test_duplicate_switch_from_environment(cli): |
| 209 | with pytest.raises(ValueError) as ex: |
nothing calls this directly
no test coverage detected
searching dependent graphs…