Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c21c96c

Browse filesBrowse files
another test
1 parent 3d40348 commit c21c96c
Copy full SHA for c21c96c

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎packages/python/plotly/plotly/tests/test_core/test_px/test_px_functions.py

Copy file name to clipboardExpand all lines: packages/python/plotly/plotly/tests/test_core/test_px/test_px_functions.py
+6Lines changed: 6 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.