MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_drop_short_2

Method test_drop_short_2

testing/test_parseopt.py:244–247  ·  view source on GitHub ↗
(self, parser: parseopt.Parser)

Source from the content-addressed store, hash-verified

242 parser.parse(["--funcarg", "--k"])
243
244 def test_drop_short_2(self, parser: parseopt.Parser) -> None:
245 parser.addoption("--func-arg", "--doit", action="store_true")
246 args = parser.parse(["--doit"])
247 assert args.func_arg is True
248
249 def test_drop_short_3(self, parser: parseopt.Parser) -> None:
250 parser.addoption("--func-arg", "--funcarg", "--doit", action="store_true")

Callers

nothing calls this directly

Calls 2

addoptionMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected