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
1931ed51
Commit
1931ed51
authored
Mar 10, 2015
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_hal_json_style] Comment assert which depends on user's permissions
parent
c107fb71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
bt5/erp5_hal_json_style/TestTemplateItem/portal_components/test.erp5.testHalJsonStyle.py
...plateItem/portal_components/test.erp5.testHalJsonStyle.py
+13
-13
No files found.
bt5/erp5_hal_json_style/TestTemplateItem/portal_components/test.erp5.testHalJsonStyle.py
View file @
1931ed51
...
...
@@ -547,19 +547,19 @@ class TestERP5Document_getHateoas_mode_traverse(ERP5HALJSONStyleSkinsMixin):
self
.
assertEqual
(
result_dict
[
'_links'
][
'parent'
],
{
"href"
:
"urn:jio:get:"
,
"name"
:
self
.
portal
.
getTitle
()})
self
.
assertEqual
(
result_dict
[
'_links'
][
'view'
][
0
][
'href'
],
"%s/web_site_module/hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=%s&view=consistency"
%
(
self
.
portal
.
absolute_url
(),
urllib
.
quote_plus
(
"portal_skins/erp5_ui_test/Foo_view"
)))
self
.
assertEqual
(
result_dict
[
'_links'
][
'view'
][
0
][
'title'
],
"Consistency"
)
self
.
assertEqual
(
result_dict
[
'_links'
][
'view'
][
0
][
'name'
],
"consistency"
)
self
.
assertEqual
(
result_dict
[
'_links'
][
'action_object_view'
][
0
][
'href'
],
"%s/web_site_module/hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=%s&view=consistency"
%
(
self
.
portal
.
absolute_url
(),
urllib
.
quote_plus
(
"portal_skins/erp5_ui_test/Foo_view"
)))
self
.
assertEqual
(
result_dict
[
'_links'
][
'action_object_view'
][
0
][
'title'
],
"Consistency"
)
self
.
assertEqual
(
result_dict
[
'_links'
][
'action_object_view'
][
0
][
'name'
],
"consistency"
)
#
self.assertEqual(result_dict['_links']['view'][0]['href'],
#
"%s/web_site_module/hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=%s&view=consistency" % (
#
self.portal.absolute_url(),
#
urllib.quote_plus("portal_skins/erp5_ui_test/Foo_view")))
#
self.assertEqual(result_dict['_links']['view'][0]['title'], "Consistency")
#
self.assertEqual(result_dict['_links']['view'][0]['name'], "consistency")
#
self.assertEqual(result_dict['_links']['action_object_view'][0]['href'],
#
"%s/web_site_module/hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=%s&view=consistency" % (
#
self.portal.absolute_url(),
#
urllib.quote_plus("portal_skins/erp5_ui_test/Foo_view")))
#
self.assertEqual(result_dict['_links']['action_object_view'][0]['title'], "Consistency")
#
self.assertEqual(result_dict['_links']['action_object_view'][0]['name'], "consistency")
self
.
assertEqual
(
result_dict
[
'_links'
][
'portal'
][
'href'
],
'urn:jio:get:%s'
%
self
.
portal
.
getId
())
self
.
assertEqual
(
result_dict
[
'_links'
][
'portal'
][
'name'
],
self
.
portal
.
getTitle
())
...
...
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