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
138
Merge Requests
138
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
492bad50
Commit
492bad50
authored
Nov 04, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🚧
try patch for...
🚧
try patch for
45c03413 (comment 171160)
parent
b1d6fae6
Pipeline
#24554
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
bt5/erp5_hal_json_style/TestTemplateItem/portal_components/test.erp5.testHalJsonStyle.py
...plateItem/portal_components/test.erp5.testHalJsonStyle.py
+4
-0
No files found.
bt5/erp5_hal_json_style/TestTemplateItem/portal_components/test.erp5.testHalJsonStyle.py
View file @
492bad50
...
@@ -2942,8 +2942,12 @@ return msg"
...
@@ -2942,8 +2942,12 @@ return msg"
# worklists with the actual count of document
# worklists with the actual count of document
fake_request
=
do_fake_request
(
"GET"
)
fake_request
=
do_fake_request
(
"GET"
)
self
.
portal
.
Base_addUITestTranslation
(
message
=
'Draft to Validate'
,
translation
=
'Draft to Validate translated'
,
language
=
"wo"
)
default_gettext
=
self
.
portal
.
Localizer
.
erp5_ui
.
gettext
default_gettext
=
self
.
portal
.
Localizer
.
erp5_ui
.
gettext
def
gettext
(
message
,
**
kw
):
def
gettext
(
message
,
**
kw
):
# TODO can't we return mock.DEFAULT here ?
return
default_gettext
(
message
,
**
kw
)
return
default_gettext
(
message
,
**
kw
)
with
mock
.
patch
.
object
(
self
.
portal
.
Localizer
.
erp5_ui
.
__class__
,
'gettext'
,
side_effect
=
gettext
)
as
gettext_mock
:
with
mock
.
patch
.
object
(
self
.
portal
.
Localizer
.
erp5_ui
.
__class__
,
'gettext'
,
side_effect
=
gettext
)
as
gettext_mock
:
...
...
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