MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_enum_members

Function test_enum_members

tests/test_native_enum.py:80–82  ·  view source on GitHub ↗
(enum_type, members)

Source from the content-addressed store, hash-verified

78
79@pytest.mark.parametrize(("enum_type", "members"), ENUM_TYPES_AND_MEMBERS)
80def test_enum_members(enum_type, members):
81 for name, value in members:
82 assert enum_type[name].value == value
83
84
85@pytest.mark.parametrize(("enum_type", "members"), ENUM_TYPES_AND_MEMBERS)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected