Skip to content

Commit

Permalink
test: be more careful about creating paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kalekundert committed Jan 31, 2022
1 parent a6fe696 commit 6e6dbc3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ def test_pick_attrs(df, attrs, expected, error):
indirect=['layout'],
)
def test_show(layout, attrs, color, tol, expected, error):
actual = layout.parent / expected
expected = REF_IMAGES / expected
if not error:
actual = layout.parent / expected
expected = REF_IMAGES / expected

with error:
fig = show(layout, attrs, color)
Expand Down

0 comments on commit 6e6dbc3

Please sign in to comment.