Skip to content

Commit 2ab87e1

Browse files
committed
Also save the generated html
1 parent 3709c47 commit 2ab87e1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test_snapshots.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ jobs:
5050
uses: actions/upload-artifact@v4
5151
with:
5252
name: screenshots
53-
path: /tmp/screenshot_*_*.png
53+
path: |
54+
/tmp/screenshot_*_*.png

tests/snapshots/test_snapshots.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def test_screenshot(path: str):
3232
mismatch = pixelmatch(img_a, img_b, img_diff, threshold=0.2, includeAA=False)
3333

3434
img_diff.save(f"/tmp/screenshot_diff_{path}.png")
35+
m.save(f"/tmp/folium_map_{path}.html")
3536
assert mismatch < 200
3637

3738
else:

0 commit comments

Comments
 (0)