Browse Source

[REF] 'document_extract_from_database' update comment in test file;

pull/85/head
Sylvain LE GAL 10 years ago
parent
commit
b23657197c
  1. 4
      document_extract_from_database/tests/test_document_extract_from_database.py

4
document_extract_from_database/tests/test_document_extract_from_database.py

@ -64,8 +64,8 @@ class TestDocumentExtractFromDatabase(TransactionCase):
data_after = self.ia_obj.browse(cr, uid, ia_id).datas data_after = self.ia_obj.browse(cr, uid, ia_id).datas
# Test if datas have not changed # Test if datas have not changed
# FIXME: After rewriting document, there is \n in 'datas' field
# The file is still readable.
# Note: Replace \n char by nothing, because datas field are different
# when ir_attachement is in Database or in File System
ia = self.ia_obj.browse(cr, uid, ia_id) ia = self.ia_obj.browse(cr, uid, ia_id)
self.assertEqual( self.assertEqual(
data_before, data_after.replace('\n', ''), data_before, data_after.replace('\n', ''),

Loading…
Cancel
Save