Skip to content

Commit 4a2dbc1

Browse files
committed
Print screenshot if test fails
1 parent f68b025 commit 4a2dbc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/selenium/test_heat_map_selenium.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ def test_heat_map_with_weights(driver):
3434
path = os.path.dirname(__file__)
3535
with open(os.path.join(path, 'test_heat_map_selenium_screenshot.png'), 'rb') as f:
3636
screenshot_expected = f.read()
37-
assert hash(screenshot) == hash(screenshot_expected)
37+
if hash(screenshot) != hash(screenshot_expected):
38+
print(screenshot)
39+
assert False, 'screenshot is not as expected'

0 commit comments

Comments
 (0)