MCPcopy
hub / github.com/dask/dask / test_basic

Function test_basic

dask/tests/test_highgraph.py:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def test_basic():
33 a = {"x": 1}
34 b = {"y": (inc, "x")}
35 layers = {"a": a, "b": b}
36 dependencies = {"a": set(), "b": {"a"}}
37 hg = HighLevelGraph(layers, dependencies)
38
39 assert dict(hg) == {"x": 1, "y": (inc, "x")}
40 assert all(isinstance(layer, Layer) for layer in hg.layers.values())
41
42
43def test_keys_values_items_to_dict_methods():

Callers

nothing calls this directly

Calls 4

HighLevelGraphClass · 0.90
setClass · 0.85
allFunction · 0.85
valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…