From 231cbb014535bc43a2f19a089648efcca546a86d Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 29 Sep 2021 12:32:36 +0200 Subject: [PATCH] tests: Add xps sample file --- tests/ooxml/test_basic.py | 3 ++- tests/test-data/other/presentation.xps | Bin 0 -> 217934 bytes 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100755 tests/test-data/other/presentation.xps diff --git a/tests/ooxml/test_basic.py b/tests/ooxml/test_basic.py index e4f5760..a45a83c 100644 --- a/tests/ooxml/test_basic.py +++ b/tests/ooxml/test_basic.py @@ -34,7 +34,7 @@ class TestOOXML(unittest.TestCase): ppsx=ooxml.DOCTYPE_POWERPOINT, ppsm=ooxml.DOCTYPE_POWERPOINT, potx=ooxml.DOCTYPE_POWERPOINT, potm=ooxml.DOCTYPE_POWERPOINT, ods=ooxml.DOCTYPE_NONE, odt=ooxml.DOCTYPE_NONE, - odp=ooxml.DOCTYPE_NONE, + odp=ooxml.DOCTYPE_NONE, xps=ooxml.DOCTYPE_NONE, ) # files that are neither OLE nor xml: @@ -42,6 +42,7 @@ class TestOOXML(unittest.TestCase): except_extns = 'rtf', 'csv', 'zip' # analyse all files in data dir + # TODO: use testdata_reader to extract real data from zip files for base_dir, _, files in os.walk(DATA_BASE_DIR): for filename in files: if filename in except_files: diff --git a/tests/test-data/other/presentation.xps b/tests/test-data/other/presentation.xps new file mode 100755 index 0000000..7463731 Binary files /dev/null and b/tests/test-data/other/presentation.xps differ -- libgit2 0.21.4