Skip to content

Commit 72bc179

Browse files
committed
fix: conditionally remove '"template"' key from test JSON
1 parent 12b47e0 commit 72bc179

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plotly/tests/test_io/test_to_from_plotly_json.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ def test_sanitize_json(engine):
244244
fig = go.Figure(layout=layout)
245245
fig_json = pio.to_json_plotly(fig, engine=engine)
246246
layout_2 = json.loads(fig_json)["layout"]
247+
if "template" in layout_2:
248+
del layout_2["template"]
247249

248250
assert layout == layout_2
249251

0 commit comments

Comments
 (0)