Skip to content

Commit 80bc924

Browse files
committed
fix test_pytest_mpl.py
1 parent c2186d6 commit 80bc924

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_pytest_mpl.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,14 @@ def test_hash_fails(tmpdir):
289289
f.write(TEST_FAILING_HASH)
290290

291291
# If we use --mpl, it should detect that the figure is wrong
292-
output = assert_pytest_fails_with(['--mpl', test_file], "doesn't match hash FAIL in library")
292+
expected = "does not match baseline hash 'FAIL' in library"
293+
output = assert_pytest_fails_with(['--mpl', test_file], expected)
293294
# We didn't specify a baseline dir so we shouldn't attempt to find one
294295
assert "Image file not found for comparison test" not in output, output
295296

296297
# Check that the summary path is printed and that it exists.
297298
output = assert_pytest_fails_with(['--mpl', test_file, '--mpl-generate-summary=html'],
298-
"doesn't match hash FAIL in library")
299+
expected)
299300
# We didn't specify a baseline dir so we shouldn't attempt to find one
300301
print_message = "A summary of test results can be found at:"
301302
assert print_message in output, output

0 commit comments

Comments
 (0)