()
| 30 | |
| 31 | |
| 32 | def 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 | |
| 43 | def test_keys_values_items_to_dict_methods(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…