Commit 5fec58ac authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

OOoUtils: Followup of 48e2e4fd: Parsed OOo file content is bytes().

parent af7a0863
...@@ -3394,9 +3394,9 @@ class TestAccountingExport(AccountingTestCase): ...@@ -3394,9 +3394,9 @@ class TestAccountingExport(AccountingTestCase):
'40 - Payable', '40 - Payable',
self.account_module.payable.Account_getFormattedTitle()) self.account_module.payable.Account_getFormattedTitle())
# check that this account name can be found in the content # check that this account name can be found in the content
self.assertIn('40 - Payable', content_xml) self.assertIn(b'40 - Payable', content_xml)
# check that we don't have unknown categories # check that we don't have unknown categories
self.assertNotIn('???', content_xml) self.assertNotIn(b'???', content_xml)
class TestTransactions(AccountingTestCase): class TestTransactions(AccountingTestCase):
......
...@@ -640,7 +640,7 @@ class TestInvoice(TestInvoiceMixin): ...@@ -640,7 +640,7 @@ class TestInvoice(TestInvoiceMixin):
parser = OOoParser() parser = OOoParser()
parser.openFromBytes(odt) parser.openFromBytes(odt)
style_xml = parser.oo_files['styles.xml'] style_xml = parser.oo_files['styles.xml']
self.assertNotIn('<draw:image', style_xml) self.assertNotIn(b'<draw:image', style_xml)
def test_Invoice_viewAsODT_invalid_image(self): def test_Invoice_viewAsODT_invalid_image(self):
resource = self.portal.getDefaultModule( resource = self.portal.getDefaultModule(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment