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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aaron Chen
erp5
Commits
ce80ff25
Commit
ce80ff25
authored
Apr 11, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: automatically add erp5_core_proxy_field_legacy & erp5_stock_cache iff required
parent
80edfe2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
product/ERP5Type/tests/ERP5TypeTestCase.py
product/ERP5Type/tests/ERP5TypeTestCase.py
+10
-8
No files found.
product/ERP5Type/tests/ERP5TypeTestCase.py
View file @
ce80ff25
...
...
@@ -808,16 +808,15 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
BaseMessage
.
max_retry
=
property
(
lambda
self
:
self
.
activity_kw
.
get
(
'max_retry'
,
1
))
template_list
=
self
.
getBusinessTemplateList
(
)
template_list
=
list
(
self
.
getBusinessTemplateList
()
)
erp5_catalog_storage
=
os
.
environ
.
get
(
'erp5_catalog_storage'
,
'erp5_mysql_innodb_catalog'
)
update_business_templates
=
os
.
environ
.
get
(
'update_business_templates'
)
is
not
None
erp5_load_data_fs
=
int
(
os
.
environ
.
get
(
'erp5_load_data_fs'
,
0
))
if
update_business_templates
and
erp5_load_data_fs
:
update_only
=
os
.
environ
.
get
(
'update_only'
,
None
)
template_list
=
(
erp5_catalog_storage
,
'erp5_property_sheets'
,
'erp5_core'
,
'erp5_xhtml_style'
)
\
+
tuple
(
template_list
)
template_list
[:
0
]
=
(
erp5_catalog_storage
,
'erp5_property_sheets'
,
'erp5_core'
,
'erp5_xhtml_style'
)
# Update only specified business templates, regular expression
# can be used.
if
update_only
is
not
None
:
...
...
@@ -836,10 +835,13 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
light_install
=
self
.
enableLightInstall
()
create_activities
=
self
.
enableActivityTool
()
hot_reindexing
=
self
.
enableHotReindexing
()
# We want to always have optimisation available
if
"erp5_stock_cache"
not
in
template_list
:
template_list
=
list
(
template_list
)
template_list
.
append
(
"erp5_stock_cache"
)
for
x
,
y
in
((
"erp5_core_proxy_field_legacy"
,
"erp5_base"
),
(
"erp5_stock_cache"
,
"erp5_pdm"
)):
if
x
not
in
template_list
:
try
:
template_list
.
insert
(
template_list
.
index
(
y
),
x
)
except
ValueError
:
pass
self
.
setUpERP5Site
(
business_template_list
=
template_list
,
light_install
=
light_install
,
create_activities
=
create_activities
,
...
...
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