From 17cbbc926a186d517d9683c33b3265b6b4b578f0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 4 Nov 2020 16:00:20 +0100 Subject: Labels generation: fix missing images in templates --- archaeological_operations/tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'archaeological_operations/tests.py') diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 9cb715a6f..bb8c02c78 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -2449,7 +2449,10 @@ class LabelTest(TestCase, OperationInitTest): z = zipfile.ZipFile(f) self.assertIsNone(z.testzip()) content = z.open('content.xml') - self.assertIn(b'1789', content.read()) + full_content = content.read() + self.assertIn(b'1789', full_content) + # jpe file are added for missing pictures / must be filtered + self.assertNotIn(b'.jpe"', full_content) finally: if content: content.close() -- cgit v1.2.3