Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs-appstore
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
officejs-appstore
Commits
5d4568e4
Commit
5d4568e4
authored
Jan 27, 2022
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
officejs_test: update tests
parent
d9d96fc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
23 deletions
+31
-23
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenario.py
...eItem/portal_components/test.erp5.testOfficeJSScenario.py
+6
-6
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenario.xml
...Item/portal_components/test.erp5.testOfficeJSScenario.xml
+25
-17
No files found.
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenario.py
View file @
5d4568e4
...
...
@@ -136,7 +136,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
self
.
assertEquals
(
response
.
status
,
200
)
self
.
assertEquals
(
response
.
getheader
(
'Cache-Control'
),
'max-age=
600, stale-while-revalidate=360000, stale-if-error=31536000, public
'
'max-age=
0, public, must-revalidate
'
)
self
.
assertTrue
(
'text/html;'
in
response
.
getheader
(
'Content-Type'
),
...
...
@@ -152,7 +152,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
)
self
.
assertEquals
(
response
.
getheader
(
'Vary'
).
replace
(
' '
,
''
),
'Cookie,Authorization,Accept-Encoding'
'
Accept-Language,
Cookie,Authorization,Accept-Encoding'
)
# First access to Base_getWebDocumentDrivenModificationDate writes in ZODB
self
.
tic
()
...
...
@@ -258,7 +258,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
self
.
assertEquals
(
response
.
status
,
200
)
self
.
assertEquals
(
response
.
getheader
(
'Cache-Control'
),
'max-age=
600, stale-while-revalidate=360000, stale-if-error=31536000, public
'
'max-age=
0, public, must-revalidate
'
)
self
.
assertTrue
(
'text/html;'
in
response
.
getheader
(
'Content-Type'
),
...
...
@@ -274,7 +274,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
)
self
.
assertEquals
(
response
.
getheader
(
'Vary'
).
replace
(
' '
,
''
),
'Cookie,Authorization,Accept-Encoding'
'
Accept-Language,
Cookie,Authorization,Accept-Encoding'
)
###################################
...
...
@@ -306,7 +306,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
self
.
assertEquals
(
response
.
status
,
200
)
self
.
assertEquals
(
response
.
getheader
(
'Cache-Control'
),
'max-age=
600, stale-while-revalidate=360000, stale-if-error=31536000, public
'
'max-age=
0, public, must-revalidate
'
)
self
.
assertTrue
(
'text/html;'
in
response
.
getheader
(
'Content-Type'
),
...
...
@@ -322,7 +322,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
)
self
.
assertEquals
(
response
.
getheader
(
'Vary'
).
replace
(
' '
,
''
),
'Cookie,Authorization,Accept-Encoding'
'
Accept-Language,
Cookie,Authorization,Accept-Encoding'
)
###################################
...
...
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenario.xml
View file @
5d4568e4
...
...
@@ -45,7 +45,11 @@
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<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>
</item>
<item>
...
...
@@ -100,24 +104,28 @@
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
<dictionary>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment