summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-11-04 16:00:20 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2020-11-04 16:00:20 +0100
commit72b0e6ca45a7296f6288bf994ff3da86c85bad32 (patch)
treee2b9ea825e5ef20a81bef7d58688cd4fe798eeca /archaeological_operations/tests.py
parenta8400088480d5389345c0aa5ff691704f9764513 (diff)
downloadIshtar-72b0e6ca45a7296f6288bf994ff3da86c85bad32.tar.bz2
Ishtar-72b0e6ca45a7296f6288bf994ff3da86c85bad32.zip
Labels generation: fix missing images in templates
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py5
1 files changed, 4 insertions, 1 deletions
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()