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
139
Merge Requests
139
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
3df59caf
Commit
3df59caf
authored
Feb 09, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KM: py3
parent
7c1b1a71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
bt5/erp5_km/TestTemplateItem/portal_components/test.erp5.testKM.py
...km/TestTemplateItem/portal_components/test.erp5.testKM.py
+7
-7
No files found.
bt5/erp5_km/TestTemplateItem/portal_components/test.erp5.testKM.py
View file @
3df59caf
...
...
@@ -717,7 +717,7 @@ class TestKM(TestKMMixIn):
gadget_view_form_id
)
# no related docs should exist
self
.
assertIn
(
b
'No result.'
,
relation_form_renderer
())
self
.
assertIn
(
'No result.'
,
relation_form_renderer
())
# set related docs
similar_doc
=
portal
.
web_page_module
.
newContent
(
...
...
@@ -751,9 +751,9 @@ class TestKM(TestKMMixIn):
portal
=
self
.
getPortal
()
portal_gadgets
=
portal
.
portal_gadgets
url
=
'%s/ERP5Site_viewHomeAreaRenderer?gadget_mode=web_front'
%
self
.
web_site_url
url
=
'%s/ERP5Site_viewHomeAreaRenderer?gadget_mode=web_front'
%
self
.
web_site_url
response
=
self
.
publish
(
url
,
self
.
auth
)
self
.
assertIn
(
self
.
web_front_knowledge_pad
.
getTitle
(),
response
.
getBody
())
self
.
assertIn
(
self
.
web_front_knowledge_pad
.
getTitle
()
.
encode
()
,
response
.
getBody
())
gadget
=
portal_gadgets
.
km_latest_documents
self
.
web_front_knowledge_pad
.
KnowledgePad_addBoxList
(
uids
=
[
gadget
.
getUid
()])
...
...
@@ -761,7 +761,7 @@ class TestKM(TestKMMixIn):
# check that gadgets are added to web front page view
response
=
self
.
publish
(
url
,
self
.
auth
)
self
.
assertIn
(
gadget
.
getTitle
(),
response
.
getBody
())
self
.
assertIn
(
gadget
.
getTitle
()
.
encode
()
,
response
.
getBody
())
# set non existent view_form
old_gadget_view_form_id
=
gadget
.
view_form_id
...
...
@@ -773,7 +773,7 @@ class TestKM(TestKMMixIn):
self
.
assertNotIn
(
b'Server side error'
,
response
.
getBody
())
# set non existent edit_form
old_gadget_edit_form_id
=
gadget
.
edit_form_id
old_gadget_edit_form_id
=
gadget
.
edit_form_id
gadget
.
edit_form_id
=
'NO_SUCH_FORM_EXISTS'
response
=
self
.
publish
(
url
,
self
.
auth
)
self
.
assertIn
(
b'Server side error'
,
response
.
getBody
())
...
...
@@ -794,7 +794,7 @@ class TestKM(TestKMMixIn):
self
.
changeSkin
(
'KM'
)
# "Subsections" gadget
gadget_view_form_id
=
web_site_browser_gadget
.
view_form_id
gadget_view_form_id
=
web_site_browser_gadget
.
view_form_id
box_url
=
_getGadgetInstanceUrlFromKnowledgePad
(
\
self
.
web_front_knowledge_pad
,
\
web_site_browser_gadget
)
...
...
@@ -806,7 +806,7 @@ class TestKM(TestKMMixIn):
gadget_view_form_id
,
self
.
website
.
getRelativeUrl
(),
box_url
)
self
.
assertNotIn
(
subsection
.
getTitle
(),
self
.
assertNotIn
(
subsection
.
getTitle
()
.
encode
()
,
self
.
publish
(
url
,
self
.
auth
).
getBody
())
# make section visible
...
...
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