1
0
mirror of synced 2024-11-24 10:14:24 +01:00

Fix the Debian CI

This should fix #162
This commit is contained in:
jvoisin 2021-12-26 15:45:29 +01:00
parent 3378f3ab8c
commit cd2b9af902

View File

@ -429,7 +429,7 @@ class TestCleaning(unittest.TestCase):
'name': 'gif',
'parser': images.GIFParser,
'meta': {'Comment': 'this is a test comment'},
'expected_meta': {},
'expected_meta': {'TransparentColor': '5'},
},{
'name': 'css',
'parser': web.CSSParser,
@ -531,8 +531,10 @@ class TestCleaning(unittest.TestCase):
self.assertTrue(p1.remove_all())
p2 = case['parser'](p1.output_filename)
meta = p2.get_meta()
if meta:
for k, v in p2.get_meta().items():
self.assertIn(k, case['expected_meta'])
self.assertIn(k, case['expected_meta'], '"%s" is not in "%s" (%s)' % (k, case['expected_meta'], case['name']))
self.assertIn(str(case['expected_meta'][k]), str(v))
self.assertTrue(p2.remove_all())