Skip to content

Commit c610d17

Browse files
another test
1 parent 1f5ba2e commit c610d17

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: packages/python/plotly/plotly/tests/test_core/test_px/test_px_functions.py

+6
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ def test_sunburst_treemap_with_path_and_hover():
182182
assert "smoker" not in fig.data[0].hovertemplate # represented as '%{hovertext}'
183183
assert "%{hovertext}" in fig.data[0].hovertemplate # represented as '%{hovertext}'
184184

185+
df = px.data.tips()
186+
fig = px.sunburst(df, path=["sex", "day", "time", "smoker"], custom_data=["smoker"])
187+
assert fig.data[0].customdata[0][0] in ["Yes", "No"]
188+
assert "smoker" not in fig.data[0].hovertemplate
189+
assert "%{hovertext}" not in fig.data[0].hovertemplate
190+
185191

186192
def test_sunburst_treemap_with_path_color():
187193
vendors = ["A", "B", "C", "D", "E", "F", "G", "H"]

0 commit comments

Comments
 (0)