Skip to content

Commit

Permalink
ENH: make summary log message about test results in general instead o…
Browse files Browse the repository at this point in the history
…f failures
  • Loading branch information
neutrinoceros committed Apr 30, 2022
1 parent fe64a71 commit 7aba1b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pytest_mpl/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,11 +726,11 @@ def pytest_unconfigure(self, config):
kwargs["hash_library"] = result_hash_library.name
if 'html' in self.generate_summary:
summary = generate_summary_html(self._test_results, self.results_dir, **kwargs)
print(f"A summary of the failed tests can be found at: {summary}")
print(f"A summary of test results can be found at: {summary}")
if 'basic-html' in self.generate_summary:
summary = generate_summary_basic_html(self._test_results, self.results_dir,
**kwargs)
print(f"A summary of the failed tests can be found at: {summary}")
print(f"A summary of test results can be found at: {summary}")


class FigureCloser:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pytest_mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def test_hash_fails(tmpdir):
output = assert_pytest_fails_with(['--mpl', test_file, '--mpl-generate-summary=html'],
"doesn't match hash FAIL in library")
# We didn't specify a baseline dir so we shouldn't attempt to find one
print_message = "A summary of the failed tests can be found at:"
print_message = "A summary of test results can be found at:"
assert print_message in output, output
printed_path = Path(output.split(print_message)[1].strip())
assert printed_path.exists()
Expand Down

0 comments on commit 7aba1b9

Please sign in to comment.