MCPcopy
hub / github.com/dask/dask / test_nested_containers

Function test_nested_containers

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

Source from the content-addressed store, hash-verified

959
960
961def test_nested_containers():
962 t = List(Task("key-1", func, "a", "b"), Task("key-2", func, "c", "d"))
963 assert t() == ["a-b", "c-d"]
964
965 t = List(Task("key-1", func, "a", TaskRef("b")), Task("key-2", func, "c", "d"))
966 assert t.dependencies == {"b"}
967 assert t({"b": "b"}) == ["a-b", "c-d"]
968
969
970def test_dict_class():

Callers

nothing calls this directly

Calls 3

ListClass · 0.90
TaskClass · 0.90
TaskRefClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…