Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
3808a4e6
Commit
3808a4e6
authored
Dec 12, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_hal_json_style] Creating a document is needed to see a worklist
parent
6adee5ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bt5/erp5_hal_json_style/TestTemplateItem/portal_components/test.erp5.testHalJsonStyle.py
...plateItem/portal_components/test.erp5.testHalJsonStyle.py
+3
-2
No files found.
bt5/erp5_hal_json_style/TestTemplateItem/portal_components/test.erp5.testHalJsonStyle.py
View file @
3808a4e6
...
...
@@ -1350,8 +1350,9 @@ return msg"
'return "application/hal+json"'
)
@
simulate
(
'Base_translateString'
,
'msg, catalog="ui", encoding="utf8", lang="wo", **kw'
,
code_string
)
@
createIndexedDocument
()
@
changeSkin
(
'Hal'
)
def
test_getHateoasWorklist_default_view_translation
(
self
):
def
test_getHateoasWorklist_default_view_translation
(
self
,
**
kw
):
# self._makeDocument()
fake_request
=
do_fake_request
(
"GET"
)
result
=
self
.
portal
.
web_site_module
.
hateoas
.
ERP5Document_getHateoas
(
...
...
@@ -1367,7 +1368,7 @@ return msg"
work_list
=
[
x
for
x
in
result_dict
[
'worklist'
]
if
x
[
'name'
].
startswith
(
'daiyanzhen'
)]
self
.
assertEqual
(
len
(
work_list
),
1
)
self
.
assertEqual
(
work_list
[
0
][
'name'
],
'daiyanzhen'
)
self
.
assert
True
(
work_list
[
0
][
'count'
]
>
0
)
self
.
assert
Equal
(
work_list
[
0
][
'count'
],
1
)
self
.
assertFalse
(
'module'
in
work_list
[
0
])
self
.
assertEqual
(
work_list
[
0
][
'href'
],
'urn:jio:allDocs?query=portal_type%3A%28%22Bar%22%20OR%20%22Foo%22%29%20AND%20simulation_state%3A%22draft%22'
)
...
...
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