Skip to content

Commit

Permalink
Fixes plotly version change to add env var
Browse files Browse the repository at this point in the history
  • Loading branch information
skrawcz committed Nov 17, 2024
1 parent fc6093a commit 76606ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/plugins/test_plotly_extensions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import pathlib

import plotly.graph_objects as go
Expand All @@ -15,6 +16,7 @@ def figure():
def test_plotly_static_writer(figure: go.Figure, tmp_path: pathlib.Path) -> None:
file_path = tmp_path / "figure.png"

os.environ["BROWSER_PATH"] = "" # required for PlotlyStaticWriter to work
writer = PlotlyStaticWriter(path=file_path)
metadata = writer.save_data(figure)

Expand Down

0 comments on commit 76606ee

Please sign in to comment.