MCPcopy Create free account
hub / github.com/dask/dask / test_immutable_attributes

Function test_immutable_attributes

dask/tests/test_dot.py:321–338  ·  view source on GitHub ↗
(viz_func)

Source from the content-addressed store, hash-verified

319
320@pytest.mark.parametrize("viz_func", [to_graphviz, _to_cytoscape_json])
321def test_immutable_attributes(viz_func):
322 def inc(x):
323 return x + 1
324
325 dsk = {"a": (inc, 1), "b": (inc, 2), "c": (add, "a", "b")}
326 attrs_func = {"a": {}}
327 attrs_data = {"b": {}}
328 attrs_func_test = copy.deepcopy(attrs_func)
329 attrs_data_test = copy.deepcopy(attrs_data)
330
331 viz_func(
332 dsk,
333 function_attributes=attrs_func,
334 data_attributes=attrs_data,
335 )
336
337 assert attrs_func_test == attrs_func
338 assert attrs_data_test == attrs_data

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected