diff --git a/product/ERP5OOo/tests/testDms.py b/product/ERP5OOo/tests/testDms.py index d29680f7d676d99e54eaa5cb8dd2be5e01c3a6ca..ac6f3fb78fbbe11cc61b2ffb729067375de4ad1c 100644 --- a/product/ERP5OOo/tests/testDms.py +++ b/product/ERP5OOo/tests/testDms.py @@ -807,12 +807,6 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): document = self.portal.document_module.newContent(portal_type='PDF') # Here we use edit instead of setFile, # because only edit method set filename as source_reference. - # This is a feature related to portal_contribution, - # sometimes filename is replaced by value provided by - # rewriteIngestionData type based method. - # setFile should keep value provided by portal_contribution - # instead of reading it from file itself. - # See special parameter set_filename__ in ERP5.Tool.ContributionTool document.edit(file=upload_file) self.assertEquals('application/pdf', document.getContentType())