Browse Source

[FIX] 'document_extract_from_database',

pull/85/head
Sylvain LE GAL 10 years ago
parent
commit
6f3ea057a4
  1. 5
      document_extract_from_database/tests/test_document_extract_from_database.py

5
document_extract_from_database/tests/test_document_extract_from_database.py

@ -52,7 +52,6 @@ class TestDocumentExtractFromDatabase(TransactionCase):
# Get Data Before
data_before = self.ia_obj.browse(cr, uid, ia_id).datas
# Change setting for attachment to save on filesystem
self.icp_obj.create(cr, uid, {
'key': 'ir_attachment.location',
@ -65,9 +64,11 @@ class TestDocumentExtractFromDatabase(TransactionCase):
data_after = self.ia_obj.browse(cr, uid, ia_id).datas
# Test if datas have not changed
# FIXME: After rewriting document, there is \n in 'datas' field
# The file is still readable.
ia = self.ia_obj.browse(cr, uid, ia_id)
self.assertEqual(
data_before, data_after,
data_before, data_after.replace('\n', ''),
"Datas have changed after exporting into filesystem.")
# Test if the file is in the file system

Loading…
Cancel
Save