]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tests: Dump more info if version test fails
authorStephen Finucane <stephen@that.guru>
Thu, 31 Oct 2024 22:59:18 +0000 (22:59 +0000)
committerStephen Finucane <stephen@that.guru>
Thu, 31 Oct 2024 22:59:18 +0000 (22:59 +0000)
Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/tests/test_version.py

index 8e512084c09def3cd0ba89fb793cd7b8d3fda3b3..9cbb130512c92f55e0e8bf4663d03fa4c0a14e7a 100644 (file)
@@ -32,4 +32,9 @@ class TestVersion(test.TestCase):
 
         # 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}',
+        )