1
0
Fork 0
mirror of synced 2025-07-04 04:17:29 +02:00

Vastly improve ppt compatibility

This commit is contained in:
jvoisin 2020-03-08 12:17:56 +01:00
parent a23dc001cd
commit d7a03d907b
6 changed files with 103 additions and 6 deletions

Binary file not shown.

View file

@ -777,3 +777,13 @@ class TestNoSandbox(unittest.TestCase):
os.remove('./tests/data/clean.png')
os.remove('./tests/data/clean.cleaned.png')
os.remove('./tests/data/clean.cleaned.cleaned.png')
class TestComplexOfficeFiles(unittest.TestCase):
def test_complex_pptx(self):
target = './tests/data/clean.pptx'
shutil.copy('./tests/data/narrated_powerpoint_presentation.pptx', target)
p = office.MSOfficeParser(target)
self.assertTrue(p.remove_all())
os.remove(target)
os.remove(p.output_filename)