(dsk, keys, expected, **kwargs)
| 99 | pytest.importorskip("zarr") |
| 100 | |
| 101 | def custom_scheduler_get(dsk, keys, expected, **kwargs): |
| 102 | dsk = dsk.__dask_graph__() |
| 103 | assert ( |
| 104 | len(dsk) == expected |
| 105 | ), f"False number of tasks got {len(dsk)} but expected {expected}" |
| 106 | return [42 for _ in keys] |
| 107 | |
| 108 | # First test that this mocking stuff works as expected |
| 109 | with pytest.raises(AssertionError, match="False number of tasks"): |
nothing calls this directly
no test coverage detected
searching dependent graphs…