Skip to content

Commit bbbc4af

Browse files
committed
Add test for setting hover_tooltips and still have filtering work
1 parent b3ddbd4 commit bbbc4af

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

holoviews/tests/ui/bokeh/test_hover.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,12 @@ def get_plot(color_by):
435435

436436
@bokeh_3_8_0
437437
@pytest.mark.usefixtures("bokeh_backend")
438-
def test_hover_tooltips_rasterize_server_hover_filter(serve_hv, rng):
438+
@pytest.mark.parametrize(
439+
"hover_tooltips",
440+
[None, ["s"]],
441+
ids=["default", "only_vars"]
442+
)
443+
def test_hover_tooltips_rasterize_server_hover_filter(serve_hv, rng, hover_tooltips):
439444
import datashader as ds
440445

441446
from holoviews.operation.datashader import rasterize
@@ -458,7 +463,7 @@ def watch_hook(plot, element):
458463
width=10,
459464
height=10,
460465
dynamic=False
461-
).opts(tools=["hover"], hooks=[watch_hook])
466+
).opts(tools=["hover"], hover_tooltips=hover_tooltips, hooks=[watch_hook])
462467

463468
page = serve_hv(img)
464469
hv_plot = page.locator(".bk-events")

0 commit comments

Comments
 (0)