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

Method test_group_addoption

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

Source from the content-addressed store, hash-verified

90 assert groups_names == list("132")
91
92 def test_group_addoption(self) -> None:
93 group = parseopt.OptionGroup("hello", _ispytest=True)
94 group.addoption("--option1", action="store_true")
95 assert len(group.options) == 1
96 assert isinstance(group.options[0], parseopt.Argument)
97
98 def test_group_addoption_conflict(self) -> None:
99 group = parseopt.OptionGroup("hello again", _ispytest=True)

Callers

nothing calls this directly

Calls 1

addoptionMethod · 0.95

Tested by

no test coverage detected