T0ha / ezodf

ezodf is a Python package to create new or open existing OpenDocument (ODF) files to extract, add, modify or delete document data, forked from dead project https://bitbucket.org/mozman/ezodf
Other
61 stars 23 forks source link

22 - Reenable support for Flat XML OpenDocumentFormat files #23

Open jonadem opened 7 years ago

jonadem commented 7 years ago

A ".fodt" document is already in the repository. I could test my commit with this small modification :

diff --git a/tests/test_variables.py b/tests/test_variables.py
index a02b2fc..bc46de9 100644
--- a/tests/test_variables.py
+++ b/tests/test_variables.py
@@ -107,7 +107,7 @@ class TestSimpleVariables(unittest.TestCase):  # {{{1

     def test_simple_variables_integeational(self):  # {{{2
         """Not exactly unittest but very usefull"""
-        doc = opendoc("tests/data/variables.odt")
+        doc = opendoc("tests/data/variables.fodt")
         self.assertTrue(isinstance(doc.body.variables,
                                    GenericWrapper))
         self.assertTrue(isinstance(doc.body.variables,

But I didn't dig into the test code, I let the addition of the test to read a ".fodt" document to someone else.

jonadem commented 5 years ago

Hello,

A feedback will be appreciated.

Best regards