From d7a03d907baac73dd69c0ce77f3610e7d4bad5f4 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 8 Mar 2020 12:17:56 +0100 Subject: Vastly improve ppt compatibility --- tests/data/narrated_powerpoint_presentation.pptx | Bin 0 -> 4383613 bytes tests/test_libmat2.py | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/data/narrated_powerpoint_presentation.pptx (limited to 'tests') diff --git a/tests/data/narrated_powerpoint_presentation.pptx b/tests/data/narrated_powerpoint_presentation.pptx new file mode 100644 index 0000000..ef04132 Binary files /dev/null and b/tests/data/narrated_powerpoint_presentation.pptx differ diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index 9e208ec..a6c3a9a 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py @@ -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) -- cgit v1.3