Skip to content

Commit

Permalink
tests: print number of diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Sep 21, 2024
1 parent 581f07c commit 34479aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.11]
python-version: [3.12]
poetry-version: [1.8.3]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/layouts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def layout_test(layout_func: LayoutFunc, dimensions, resp, data_dir):
out_array = np.array(out)
expected_array = np.array(Image.open(data_dir / filename))

print(np.argwhere(out_array != expected_array))
print((out_array != expected_array).any(axis=-1).sum())
assert (
np.allclose(np.array(out), np.array(Image.open(data_dir / filename)))
or UPDATE_REF_PLOTS
Expand Down

0 comments on commit 34479aa

Please sign in to comment.