()
| 22 | |
| 23 | |
| 24 | def test_start_state_callback(): |
| 25 | flag = [False] |
| 26 | |
| 27 | class MyCallback(Callback): |
| 28 | def _start_state(self, dsk, state): |
| 29 | flag[0] = True |
| 30 | assert dsk["x"]() == 1 |
| 31 | assert len(state["cache"]) == 1 |
| 32 | |
| 33 | with MyCallback(): |
| 34 | get_sync({"x": 1}, "x") |
| 35 | |
| 36 | assert flag[0] is True |
| 37 | |
| 38 | |
| 39 | def test_finish_always_called(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…