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

Function test_visualize

dask/tests/test_highgraph.py:19–29  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

17
18
19def test_visualize(tmpdir):
20 pytest.importorskip("numpy")
21 pytest.importorskip("graphviz")
22 da = pytest.importorskip("dask.array")
23 fn = str(tmpdir)
24 a = da.ones(10, chunks=(5,))
25 b = a + 1
26 c = a + 2
27 d = b + c
28 d.dask.visualize(fn)
29 assert os.path.exists(fn)
30
31
32def test_basic():

Callers

nothing calls this directly

Calls 2

onesMethod · 0.45
visualizeMethod · 0.45

Tested by

no test coverage detected