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

Method test_argument_processopt

testing/test_parseopt.py:64–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 assert argument.type is str
63
64 def test_argument_processopt(self) -> None:
65 argument = parseopt.Argument("-t", type=int)
66 argument.default = 42
67 argument.dest = "abc"
68 res = argument.attrs()
69 assert res["default"] == 42
70 assert res["dest"] == "abc"
71
72 def test_group_add_and_get(self, parser: parseopt.Parser) -> None:
73 group = parser.getgroup("hello", description="desc")

Callers

nothing calls this directly

Calls 1

attrsMethod · 0.95

Tested by

no test coverage detected