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

Method test_drop_short_help0

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

Source from the content-addressed store, hash-verified

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")
257 parser.parse([])
258 help = parser.optparser.format_help()
259 assert "--func-args, --doit foo" in help
260
261 # testing would be more helpful with all help generated
262 def test_drop_short_help1(self, parser: parseopt.Parser) -> None:

Callers

nothing calls this directly

Calls 2

addoptionMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected