MCPcopy
hub / github.com/dask/dask / test_start_callback

Function test_start_callback

dask/tests/test_callbacks.py:11–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def test_start_callback():
12 flag = [False]
13
14 class MyCallback(Callback):
15 def _start(self, dsk):
16 flag[0] = True
17
18 with MyCallback():
19 get_sync({"x": 1}, "x")
20
21 assert flag[0] is True
22
23
24def test_start_state_callback():

Callers

nothing calls this directly

Calls 2

get_syncFunction · 0.90
MyCallbackClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…