Skip to content

Commit

Permalink
tests: print saves
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Sep 21, 2024
1 parent 577a028 commit 36a9df0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/layouts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def layout_test(layout_func: LayoutFunc, dimensions, resp, data_dir):
filename = f"{layout_func.__name__}_{y_axis}_{x_gap}_{volume}.png"
assert out.size == dimensions, f"Wrong dimensions: {filename}"
if UPDATE_REF_PLOTS:
print(f"saving to {data_dir / filename}")
out.save(data_dir / filename)
out_array = np.array(out)
expected_array = np.array(Image.open(data_dir / filename))
Expand Down

0 comments on commit 36a9df0

Please sign in to comment.