MCPcopy Create free account
hub / github.com/dask/dask / test_register

Function test_register

dask/diagnostics/tests/test_progress.py:75–90  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

73
74
75def test_register(capsys):
76 try:
77 assert not Callback.active
78 p = ProgressBar()
79 p.register()
80
81 assert Callback.active
82
83 get_threaded(dsk, "e")
84 check_bar_completed(capsys)
85
86 p.unregister()
87
88 assert not Callback.active
89 finally:
90 Callback.active.clear()
91
92
93def test_no_tasks(capsys):

Callers

nothing calls this directly

Calls 5

ProgressBarClass · 0.90
check_bar_completedFunction · 0.85
unregisterMethod · 0.80
registerMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected