Skip to content

Commit 7e2bcda

Browse files
update test
1 parent 9c5813d commit 7e2bcda

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_components/test_viz.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ def test_sim_plot_structures_fill():
336336

337337
def test_tidy3d_matplotlib_style_application_on_import():
338338
"""Test restore_matplotlib_rcparams() to reset the automatically applied matplotlib.rcParams"""
339-
assert mpl.rcParams.get("axes.edgecolor") == "#ECEBEA"
339+
assert mpl.rcParams.get("axes.prop_cycle").by_key()["color"][0] == "#176737"
340340
restore_matplotlib_rcparams()
341-
assert mpl.rcParams.get("axes.edgecolor") == mpl.rcParamsDefault.get("axes.edgecolor")
341+
assert (
342+
mpl.rcParams.get("axes.prop_cycle").by_key()["color"][0]
343+
== mpl.rcParamsDefault.get("axes.prop_cycle").by_key()["color"][0]
344+
)

0 commit comments

Comments
 (0)