(dsk, keys, expected, **kwargs)
| 92 | @pytest.mark.parametrize("compute", [True, False]) |
| 93 | def test_xarray_blockwise_fusion_store(compute): |
| 94 | def custom_scheduler_get(dsk, keys, expected, **kwargs): |
| 95 | dsk = dsk.__dask_graph__() |
| 96 | assert ( |
| 97 | len(dsk) == expected |
| 98 | ), f"False number of tasks got {len(dsk)} but expected {expected}" |
| 99 | return [42 for _ in keys] |
| 100 | |
| 101 | # First test that this mocking stuff works as expecged |
| 102 | with pytest.raises(AssertionError, match="False number of tasks"): |
nothing calls this directly
no test coverage detected