Commit 231cbb014535bc43a2f19a089648efcca546a86d

Authored by Christian Herdtweck
1 parent 6e069d5f

tests: Add xps sample file

File was created by myself, free to use
tests/ooxml/test_basic.py
@@ -34,7 +34,7 @@ class TestOOXML(unittest.TestCase): @@ -34,7 +34,7 @@ class TestOOXML(unittest.TestCase):
34 ppsx=ooxml.DOCTYPE_POWERPOINT, ppsm=ooxml.DOCTYPE_POWERPOINT, 34 ppsx=ooxml.DOCTYPE_POWERPOINT, ppsm=ooxml.DOCTYPE_POWERPOINT,
35 potx=ooxml.DOCTYPE_POWERPOINT, potm=ooxml.DOCTYPE_POWERPOINT, 35 potx=ooxml.DOCTYPE_POWERPOINT, potm=ooxml.DOCTYPE_POWERPOINT,
36 ods=ooxml.DOCTYPE_NONE, odt=ooxml.DOCTYPE_NONE, 36 ods=ooxml.DOCTYPE_NONE, odt=ooxml.DOCTYPE_NONE,
37 - odp=ooxml.DOCTYPE_NONE, 37 + odp=ooxml.DOCTYPE_NONE, xps=ooxml.DOCTYPE_NONE,
38 ) 38 )
39 39
40 # files that are neither OLE nor xml: 40 # files that are neither OLE nor xml:
@@ -42,6 +42,7 @@ class TestOOXML(unittest.TestCase): @@ -42,6 +42,7 @@ class TestOOXML(unittest.TestCase):
42 except_extns = 'rtf', 'csv', 'zip' 42 except_extns = 'rtf', 'csv', 'zip'
43 43
44 # analyse all files in data dir 44 # analyse all files in data dir
  45 + # TODO: use testdata_reader to extract real data from zip files
45 for base_dir, _, files in os.walk(DATA_BASE_DIR): 46 for base_dir, _, files in os.walk(DATA_BASE_DIR):
46 for filename in files: 47 for filename in files:
47 if filename in except_files: 48 if filename in except_files:
tests/test-data/other/presentation.xps 0 → 100755
No preview for this file type