Skip to content

Commit

Permalink
print image on test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Conengmo committed Jun 13, 2020
1 parent 7cc5532 commit abe2062
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/selenium/test_heat_map_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ def test_heat_map_with_weights(driver):
path = os.path.dirname(__file__)
with open(os.path.join(path, 'test_heat_map_selenium_screenshot.png'), 'rb') as f:
screenshot_expected = f.read()
if not hash(screenshot) == hash(screenshot_expected):
print(screenshot)
assert hash(screenshot) == hash(screenshot_expected)

0 comments on commit abe2062

Please sign in to comment.