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

Method test_group_ordering

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

Source from the content-addressed store, hash-verified

82 assert group2 is group
83
84 def test_group_ordering(self, parser: parseopt.Parser) -> None:
85 parser.getgroup("1")
86 parser.getgroup("2")
87 parser.getgroup("3", after="1")
88 groups = parser._groups
89 groups_names = [x.name for x in groups]
90 assert groups_names == list("132")
91
92 def test_group_addoption(self) -> None:
93 group = parseopt.OptionGroup("hello", _ispytest=True)

Callers

nothing calls this directly

Calls 1

getgroupMethod · 0.80

Tested by

no test coverage detected