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

Method test_drop_short_3

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

Source from the content-addressed store, hash-verified

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")
251 args = parser.parse(["abcd"])
252 assert args.func_arg is False
253 assert args.file_or_dir == ["abcd"]
254
255 def test_drop_short_help0(self, parser: parseopt.Parser) -> None:
256 parser.addoption("--func-args", "--doit", help="foo", action="store_true")

Callers

nothing calls this directly

Calls 2

addoptionMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected