Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
651715c6
Commit
651715c6
authored
Apr 06, 2024
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! web, PortalTransforms: py3
parent
2d03bc4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_web/TestTemplateItem/portal_components/test.erp5.testERP5Web.py
...stTemplateItem/portal_components/test.erp5.testERP5Web.py
+3
-3
No files found.
bt5/erp5_web/TestTemplateItem/portal_components/test.erp5.testERP5Web.py
View file @
651715c6
...
@@ -1058,7 +1058,7 @@ Hé Hé Hé!""", page.asText().strip())
...
@@ -1058,7 +1058,7 @@ Hé Hé Hé!""", page.asText().strip())
self
.
assertIn
(
b'<p>initial text</p>'
,
response
.
getBody
())
self
.
assertIn
(
b'<p>initial text</p>'
,
response
.
getBody
())
# modified the web_page content
# modified the web_page content
document
.
edit
(
text_content
=
'<p>modified text<p>'
)
document
.
edit
(
text_content
=
'<p>modified text<
/
p>'
)
self
.
assertEqual
(
document
.
asText
().
strip
(),
'modified text'
)
self
.
assertEqual
(
document
.
asText
().
strip
(),
'modified text'
)
self
.
tic
()
self
.
tic
()
...
@@ -1066,12 +1066,12 @@ Hé Hé Hé!""", page.asText().strip())
...
@@ -1066,12 +1066,12 @@ Hé Hé Hé!""", page.asText().strip())
# Through the web_site.
# Through the web_site.
path
=
website
.
absolute_url_path
()
+
'/NXD-Document.Cache'
path
=
website
.
absolute_url_path
()
+
'/NXD-Document.Cache'
response
=
self
.
publish
(
path
,
self
.
credential
)
response
=
self
.
publish
(
path
,
self
.
credential
)
self
.
assertIn
(
b'<p>modified</p>'
,
response
.
getBody
())
self
.
assertIn
(
b'<p>modified
text
</p>'
,
response
.
getBody
())
# Through a web_section.
# Through a web_section.
path
=
web_section
.
absolute_url_path
()
+
'/NXD-Document.Cache'
path
=
web_section
.
absolute_url_path
()
+
'/NXD-Document.Cache'
response
=
self
.
publish
(
path
,
self
.
credential
)
response
=
self
.
publish
(
path
,
self
.
credential
)
self
.
assertIn
(
b'<p>modified</p>'
,
response
.
getBody
())
self
.
assertIn
(
b'<p>modified
text
</p>'
,
response
.
getBody
())
def
test_13a_DocumentMovedCache
(
self
):
def
test_13a_DocumentMovedCache
(
self
):
"""
"""
...
...
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