Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

test: skip Scattermapbox selection test when plotly removes it (#10721)

Dylan Madisettie2a1f9870452
diff --git a/tests/_plugins/ui/_impl/test_plotly.py b/tests/_plugins/ui/_impl/test_plotly.py
index 56fa0d969c..86b41817d2 100644
--- a/tests/_plugins/ui/_impl/test_plotly.py
+++ b/tests/_plugins/ui/_impl/test_plotly.py
@@ -2860,6 +2860,10 @@ def test_scattermap_selection_with_customdata() -> None:
assert result[0]["customdata"][1] == 0
+ not hasattr(go, "Scattermapbox"),
+ reason="Scattermapbox was removed in plotly 7",
+)
@pytest.mark.filterwarnings("ignore:.*scattermapbox.*:DeprecationWarning")
def test_scattermapbox_selection() -> None:
"""Test scattermapbox (deprecated) selection works."""