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

Method test_idmaker_enum

testing/python/metafunc.py:543–549  ·  testing/python/metafunc.py::TestMetafunc.test_idmaker_enum
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

IdMakerClass · 0.90
paramMethod · 0.80

Tested by

no test coverage detected