[Erp5-report] r35401 nicolas - /erp5/trunk/products/ERP5OOo/tests/testOOoBatchMode.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 17 19:04:07 CEST 2010
Author: nicolas
Date: Mon May 17 19:04:00 2010
New Revision: 35401
URL: http://svn.erp5.org?rev=35401&view=rev
Log:
* This test needs erp5_base to access Document_checkConversionFormatPermission
* content-disposition header is now qualified as attachment, not inline.
Modified:
erp5/trunk/products/ERP5OOo/tests/testOOoBatchMode.py
Modified: erp5/trunk/products/ERP5OOo/tests/testOOoBatchMode.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testOOoBatchMode.py?rev=35401&r1=35400&r2=35401&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testOOoBatchMode.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testOOoBatchMode.py [utf8] Mon May 17 19:04:00 2010
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2004, 2005, 2006 Nexedi SARL and Contributors.
@@ -49,7 +50,7 @@
newSecurityManager(None, user)
def getBusinessTemplateList(self):
- return ()
+ return ('erp5_base',)
def afterSetUp(self):
self.login()
@@ -77,7 +78,7 @@
ERP5Site_viewNothingAsOdt(batch_mode=0)
self.assertEqual('application/vnd.oasis.opendocument.text',
request.RESPONSE.getHeader('content-type').split(';')[0])
- self.assertEqual('inline;filename="ERP5Site_viewNothingAsOdt.odt"',
+ self.assertEqual('attachment; filename="ERP5Site_viewNothingAsOdt.odt"',
request.RESPONSE.getHeader('content-disposition'))
def test_01b_noExcEmptyFormatNoBatchMode(self):
@@ -87,7 +88,7 @@
ERP5Site_viewNothingAsOdt(format='', batch_mode=0)
self.assertEqual('application/vnd.oasis.opendocument.text',
request.RESPONSE.getHeader('content-type').split(';')[0])
- self.assertEqual('inline;filename="ERP5Site_viewNothingAsOdt.odt"',
+ self.assertEqual('attachment; filename="ERP5Site_viewNothingAsOdt.odt"',
request.RESPONSE.getHeader('content-disposition'))
def test_02_noExcNoFormatBatchMode(self):
More information about the Erp5-report
mailing list