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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
d3d80467
Commit
d3d80467
authored
Feb 05, 2016
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5TypeTestCase: update translation table only once in setUpERP5Site().
parent
b3d8ff87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
product/ERP5Type/tests/ERP5TypeTestCase.py
product/ERP5Type/tests/ERP5TypeTestCase.py
+10
-1
No files found.
product/ERP5Type/tests/ERP5TypeTestCase.py
View file @
d3d80467
...
...
@@ -865,6 +865,15 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
if
not
quiet
:
ZopeTestCase
.
_print
(
'done (%.3fs)
\
n
'
%
(
time
.
time
()
-
_start
,))
def
_updateTranslationTable
(
self
,
quiet
=
0
):
_start
=
time
.
time
()
if
not
quiet
:
ZopeTestCase
.
_print
(
'
\
n
Updating translation table ... '
)
self
.
portal
.
ERP5Site_updateTranslationTable
()
self
.
commit
()
if
not
quiet
:
ZopeTestCase
.
_print
(
'done (%.3fs)
\
n
'
%
(
time
.
time
()
-
_start
,))
def
_reindexSite
(
self
,
quiet
=
0
):
"""Reindex site if `erp5_tests_recreate_catalog` environment variable is
set. """
...
...
@@ -937,7 +946,6 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
install_kw
[
listbox_line
.
object_id
]
=
listbox_line
.
choice_item_list
[
0
][
1
]
bt
.
install
(
light_install
=
light_install
,
object_to_update
=
install_kw
,
update_translation
=
1
,
check_dependencies
=
False
)
if
bt
.
isCatalogUpdatable
()
and
(
int
(
os
.
environ
.
get
(
'erp5_tests_recreate_catalog'
,
0
))
or
\
...
...
@@ -1038,6 +1046,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
light_install
=
light_install
,
quiet
=
quiet
)
self
.
_recreateCatalog
()
self
.
_updateTranslationTable
()
self
.
_updateConversionServerConfiguration
()
self
.
_updateMemcachedConfiguration
()
# Create a Manager user at the Portal level
...
...
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