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

Method test_idmaker_enum

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

Source from the content-addressed store, hash-verified

452 assert result == ["hello \\x00", "hello \\x05"]
453
454 def test_idmaker_enum(self) -> None:
455 enum = pytest.importorskip("enum")
456 e = enum.Enum("Foo", "one, two")
457 result = idmaker(("a", "b"), [pytest.param(e.one, e.two)])
458 assert result == ["Foo.one-Foo.two"]
459
460 def test_idmaker_idfn(self) -> None:
461 """#351"""

Callers

nothing calls this directly

Calls 2

idmakerFunction · 0.90
paramMethod · 0.80

Tested by

no test coverage detected