MCPcopy
hub / github.com/dask/dask / test_profiler_plot

Function test_profiler_plot

dask/diagnostics/tests/test_profiler.py:198–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196
197@pytest.mark.skipif("not bokeh")
198def test_profiler_plot():
199 with prof:
200 get(dsk, "e")
201 p = prof.visualize(
202 width=500,
203 height=300,
204 tools="hover",
205 title="Not the default",
206 show=False,
207 save=False,
208 )
209 if BOKEH_VERSION().major < 3:
210 assert p.plot_width == 500
211 assert p.plot_height == 300
212 else:
213 assert p.width == 500
214 assert p.height == 300
215 assert len(p.tools) == 1
216 assert isinstance(p.tools[0], bokeh.models.HoverTool)
217 assert p.title.text == "Not the default"
218 # Test empty, checking for errors
219 prof.clear()
220 with warnings.catch_warnings(record=True) as record:
221 prof.visualize(show=False, save=False)
222 assert not record
223
224
225@pytest.mark.skipif("not bokeh")

Callers

nothing calls this directly

Calls 4

getFunction · 0.90
BOKEH_VERSIONFunction · 0.90
visualizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…