Skip to content

Commit

Permalink
tests: Dump more info if version test fails
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Finucane <[email protected]>
(cherry picked from commit fa14cf8)
  • Loading branch information
stephenfin committed Oct 31, 2024
1 parent 95682fd commit 5c4b660
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion patchwork/tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ def test_validate_version(self):

# if the tag is missing from one, it should be missing from the other
# (and vice versa)
self.assertEqual(bool(str_match.group(1)), bool(git_match.group(1)))
self.assertEqual(
bool(str_match.group(1)),
bool(git_match.group(1)),
f'mismatch between git and version.txt post-release metadata: '
f'git={git_match.group(1)!r}, version.txt={str_match.group(1)!r}',
)

0 comments on commit 5c4b660

Please sign in to comment.