MCPcopy Index your code
hub / github.com/pytest-dev/pytest / test_idmaker_enum

Method test_idmaker_enum

testing/python/metafunc.py:543–549  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

541 assert result == ["hello \\x00", "hello \\x05"]
542
543 def test_idmaker_enum(self) -> None:
544 enum = pytest.importorskip("enum")
545 e = enum.Enum("Foo", "one, two")
546 result = IdMaker(
547 ("a", "b"), [pytest.param(e.one, e.two)], None, None, None, None
548 ).make_unique_parameterset_ids()
549 assert result == ["Foo.one-Foo.two"]
550
551 def test_idmaker_idfn(self) -> None:
552 """#351"""

Callers

nothing calls this directly

Calls 3

IdMakerClass · 0.90
paramMethod · 0.80

Tested by

no test coverage detected