From 4c15d3b6a56bed54c774b0f0f461699fd2b97b78 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 24 Jun 2026 05:50:30 +0000 Subject: [PATCH] Fix unit tests --- src/backend/InvenTree/report/test_tags.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/backend/InvenTree/report/test_tags.py b/src/backend/InvenTree/report/test_tags.py index b5bf18f806..047ce6a686 100644 --- a/src/backend/InvenTree/report/test_tags.py +++ b/src/backend/InvenTree/report/test_tags.py @@ -440,7 +440,6 @@ class ReportTagTest(PartImageTestMixin, InvenTreeTestCase): ] for tz, fmt, locale, expected in tests: - print(tz, fmt, locale, expected) result = report_tags.format_datetime( time, timezone=tz, fmt=fmt, locale=locale ) @@ -857,7 +856,7 @@ class BarcodeTagTest(TestCase): self.assertTrue(barcode.startswith('data:image/bmp;')) # Test empty tag - with self.assertRaises(ValueError): + with self.assertRaises(ValidationError): barcode_tags.barcode('') def test_qrcode(self): @@ -877,7 +876,7 @@ class BarcodeTagTest(TestCase): self.assertEqual(len(qrcode), 309720) # Test empty tag - with self.assertRaises(ValueError): + with self.assertRaises(ValidationError): barcode_tags.qrcode('') def test_clean_barcode(self): @@ -908,7 +907,7 @@ class BarcodeTagTest(TestCase): ) # Test empty tag - with self.assertRaises(ValueError): + with self.assertRaises(ValidationError): barcode_tags.datamatrix('') # Failure cases with wrong args