()
| 196 | |
| 197 | @pytest.mark.skipif("not bokeh") |
| 198 | def 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") |
nothing calls this directly
no test coverage detected
searching dependent graphs…