MCPcopy
hub / github.com/dask/dask / test_persist_delayed_custom_key

Function test_persist_delayed_custom_key

dask/tests/test_base.py:723–729  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

721
722@pytest.mark.parametrize("key", ["a", ("a-123", h1)])
723def test_persist_delayed_custom_key(key):
724 d = Delayed(key, {key: "b", "b": 1})
725 assert d.compute() == 1
726 dp = d.persist()
727 assert dp.compute() == 1
728 assert dp.key == key
729 assert dict(dp.dask) == {key: 1}
730
731
732@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

DelayedClass · 0.90
computeMethod · 0.45
persistMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…