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

Method test_parse2

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

Source from the content-addressed store, hash-verified

123 assert not getattr(args, parseopt.FILE_OR_DIR)
124
125 def test_parse2(self, parser: parseopt.Parser) -> None:
126 args = parser.parse([Path(".")])
127 assert getattr(args, parseopt.FILE_OR_DIR)[0] == "."
128
129 def test_parse_known_args(self, parser: parseopt.Parser) -> None:
130 parser.parse_known_args([Path(".")])

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected