MCPcopy Create free account
hub / github.com/dask/dask / test_tokenize_enum

Function test_tokenize_enum

dask/tests/test_tokenize.py:925–931  ·  view source on GitHub ↗
(enum_type)

Source from the content-addressed store, hash-verified

923
924@pytest.mark.parametrize("enum_type", [Enum, IntEnum, IntFlag, Flag])
925def test_tokenize_enum(enum_type):
926 class Color(enum_type):
927 RED = 1
928 BLUE = 2
929
930 assert check_tokenize(Color.RED) == check_tokenize(Color.RED)
931 assert check_tokenize(Color.RED) != check_tokenize(Color.BLUE)
932
933
934@dataclasses.dataclass

Callers

nothing calls this directly

Calls 1

check_tokenizeFunction · 0.85

Tested by

no test coverage detected