(tmpdir)
| 17 | |
| 18 | |
| 19 | def 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 | |
| 32 | def test_basic(): |