MCPcopy
hub / github.com/dask/dask / test_substitute_subclasses

Function test_substitute_subclasses

dask/tests/test_task_spec.py:1141–1145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1139
1140
1141def test_substitute_subclasses():
1142 t = MySubclass("key", func, "a", TaskRef("b"), custom_kwarg_only="foo")
1143 t2 = t.substitute({"b": "c"})
1144 assert t2.custom_kwarg_only == "foo"
1145 assert t2({"a": "a", "c": "b"}) == t({"a": "a", "b": "b"})

Callers

nothing calls this directly

Calls 3

TaskRefClass · 0.90
MySubclassClass · 0.85
substituteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…