Commit 5d4568e4 authored by Roque's avatar Roque

officejs_test: update tests

parent d9d96fc8
...@@ -136,7 +136,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin): ...@@ -136,7 +136,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
self.assertEquals(response.status, 200) self.assertEquals(response.status, 200)
self.assertEquals( self.assertEquals(
response.getheader('Cache-Control'), response.getheader('Cache-Control'),
'max-age=600, stale-while-revalidate=360000, stale-if-error=31536000, public' 'max-age=0, public, must-revalidate'
) )
self.assertTrue( self.assertTrue(
'text/html;' in response.getheader('Content-Type'), 'text/html;' in response.getheader('Content-Type'),
...@@ -152,7 +152,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin): ...@@ -152,7 +152,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
) )
self.assertEquals( self.assertEquals(
response.getheader('Vary').replace(' ', ''), response.getheader('Vary').replace(' ', ''),
'Cookie,Authorization,Accept-Encoding' 'Accept-Language,Cookie,Authorization,Accept-Encoding'
) )
# First access to Base_getWebDocumentDrivenModificationDate writes in ZODB # First access to Base_getWebDocumentDrivenModificationDate writes in ZODB
self.tic() self.tic()
...@@ -258,7 +258,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin): ...@@ -258,7 +258,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
self.assertEquals(response.status, 200) self.assertEquals(response.status, 200)
self.assertEquals( self.assertEquals(
response.getheader('Cache-Control'), response.getheader('Cache-Control'),
'max-age=600, stale-while-revalidate=360000, stale-if-error=31536000, public' 'max-age=0, public, must-revalidate'
) )
self.assertTrue( self.assertTrue(
'text/html;' in response.getheader('Content-Type'), 'text/html;' in response.getheader('Content-Type'),
...@@ -274,7 +274,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin): ...@@ -274,7 +274,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
) )
self.assertEquals( self.assertEquals(
response.getheader('Vary').replace(' ', ''), response.getheader('Vary').replace(' ', ''),
'Cookie,Authorization,Accept-Encoding' 'Accept-Language,Cookie,Authorization,Accept-Encoding'
) )
################################### ###################################
...@@ -306,7 +306,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin): ...@@ -306,7 +306,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
self.assertEquals(response.status, 200) self.assertEquals(response.status, 200)
self.assertEquals( self.assertEquals(
response.getheader('Cache-Control'), response.getheader('Cache-Control'),
'max-age=600, stale-while-revalidate=360000, stale-if-error=31536000, public' 'max-age=0, public, must-revalidate'
) )
self.assertTrue( self.assertTrue(
'text/html;' in response.getheader('Content-Type'), 'text/html;' in response.getheader('Content-Type'),
...@@ -322,7 +322,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin): ...@@ -322,7 +322,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
) )
self.assertEquals( self.assertEquals(
response.getheader('Vary').replace(' ', ''), response.getheader('Vary').replace(' ', ''),
'Cookie,Authorization,Accept-Encoding' 'Accept-Language,Cookie,Authorization,Accept-Encoding'
) )
################################### ###################################
......
...@@ -45,7 +45,11 @@ ...@@ -45,7 +45,11 @@
<item> <item>
<key> <string>text_content_warning_message</string> </key> <key> <string>text_content_warning_message</string> </key>
<value> <value>
<tuple/> <tuple>
<string>W:113, 28: Unused variable \'api_path\' (unused-variable)</string>
<string>W:113, 38: Unused variable \'api_query\' (unused-variable)</string>
<string>W:114, 6: Unused variable \'api_fragment\' (unused-variable)</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -100,24 +104,28 @@ ...@@ -100,24 +104,28 @@
</record> </record>
<record id="4" aka="AAAAAAAAAAQ="> <record id="4" aka="AAAAAAAAAAQ=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<list> <key> <string>_log</string> </key>
<dictionary> <value>
<item> <list>
<key> <string>action</string> </key> <dictionary>
<value> <string>validate</string> </value> <item>
</item> <key> <string>action</string> </key>
<item> <value> <string>validate</string> </value>
<key> <string>validation_state</string> </key> </item>
<value> <string>validated</string> </value> <item>
</item> <key> <string>validation_state</string> </key>
</dictionary> <value> <string>validated</string> </value>
</list> </item>
</tuple> </dictionary>
</list>
</value>
</item>
</dictionary>
</pickle> </pickle>
</record> </record>
</ZopeData> </ZopeData>
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