We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf8f05 commit 2e66fb0Copy full SHA for 2e66fb0
tests/test_optional/test_kaleido/test_kaleido.py
@@ -230,6 +230,13 @@ def test_defaults():
230
assert pio._kaleido.scope.topojson == "path/to/topojson/files/"
231
assert pio._kaleido.scope.plotlyjs == "https://cdn.plot.ly/plotly-3.0.0.js"
232
233
+ # Set topojson default back to None
234
+ # (otherwise image generation will fail)
235
+ pio.defaults.topojson = None
236
+ # Generate image for real and make sure it's an SVG
237
+ result = test_fig.to_image(format="svg", validate=False)
238
+ assert result.startswith(b"<svg")
239
+
240
finally:
241
# Reset defaults to original values and check that they are restored
242
pio.defaults.default_format = "png"
0 commit comments