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
de9580f0
Commit
de9580f0
authored
Jan 25, 2017
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add DummyLocalizer.get_default_language.
parent
88e4b34f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
product/ERP5Type/tests/utils.py
product/ERP5Type/tests/utils.py
+6
-0
No files found.
product/ERP5Type/tests/utils.py
View file @
de9580f0
...
@@ -145,6 +145,9 @@ class DummyLocalizer:
...
@@ -145,6 +145,9 @@ class DummyLocalizer:
and erp5_content message catalogs. It's a list.
and erp5_content message catalogs. It's a list.
"""
"""
__allow_access_to_unprotected_subobjects__
=
1
__allow_access_to_unprotected_subobjects__
=
1
_default_language
=
'en'
def
__init__
(
self
):
def
__init__
(
self
):
self
.
erp5_ui
=
self
.
ui
=
DummyMessageCatalog
()
self
.
erp5_ui
=
self
.
ui
=
DummyMessageCatalog
()
self
.
erp5_content
=
self
.
content
=
DummyMessageCatalog
()
self
.
erp5_content
=
self
.
content
=
DummyMessageCatalog
()
...
@@ -156,6 +159,9 @@ class DummyLocalizer:
...
@@ -156,6 +159,9 @@ class DummyLocalizer:
return
getattr
(
self
,
key
)
return
getattr
(
self
,
key
)
raise
KeyError
,
key
raise
KeyError
,
key
def
get_default_language
(
self
):
return
self
.
_default_language
def
get_selected_language
(
self
):
def
get_selected_language
(
self
):
return
self
.
lang
return
self
.
lang
...
...
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