MCPcopy
hub / github.com/pytest-dev/pytest / test_parse_will_set_default

Method test_parse_will_set_default

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

Source from the content-addressed store, hash-verified

161 assert unknown == ["--y"]
162
163 def test_parse_will_set_default(self, parser: parseopt.Parser) -> None:
164 parser.addoption("--hello", dest="hello", default="x", action="store")
165 option = parser.parse([])
166 assert option.hello == "x"
167
168 def test_parse_set_options(self, parser: parseopt.Parser) -> None:
169 parser.addoption("--hello", dest="hello", action="store")

Callers

nothing calls this directly

Calls 2

addoptionMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected