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
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
Carlos Ramos Carreño
erp5
Commits
87289ded
Commit
87289ded
authored
Jan 06, 2021
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
52077620
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testBase.py
.../TestTemplateItem/portal_components/test.erp5.testBase.py
+3
-3
bt5/erp5_officejs_support_request_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_support_request_test/ERP5Site_createSupportRequestUITestDataSet.py
...equest_test/ERP5Site_createSupportRequestUITestDataSet.py
+1
-1
bt5/erp5_trade/TestTemplateItem/portal_components/test.erp5.testOrderBuilder.py
...plateItem/portal_components/test.erp5.testOrderBuilder.py
+1
-1
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testBase.py
View file @
87289ded
...
@@ -929,8 +929,8 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
...
@@ -929,8 +929,8 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
# Add a non-existent workflow.
# Add a non-existent workflow.
pw
=
self
.
getWorkflowTool
()
pw
=
self
.
getWorkflowTool
()
dummy_wor
l
flow_id
=
'never_existent_workflow'
dummy_wor
k
flow_id
=
'never_existent_workflow'
addWorkflowByType
(
pw
,
'erp5_workflow'
,
dummy_wor
l
flow_id
)
addWorkflowByType
(
pw
,
'erp5_workflow'
,
dummy_wor
k
flow_id
)
self
.
commit
()
self
.
commit
()
...
@@ -938,7 +938,7 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
...
@@ -938,7 +938,7 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
organisation_initial_workflow_list
=
organisation_type
.
getTypeWorkflowList
()
organisation_initial_workflow_list
=
organisation_type
.
getTypeWorkflowList
()
organisation_type
.
setTypeWorkflowList
(
organisation_type
.
setTypeWorkflowList
(
organisation_initial_workflow_list
+
[
dummy_workflow_id
])
organisation_initial_workflow_list
+
[
dummy_workflow_id
])
pw
.
manage_delObjects
([
dummy_wor
l
flow_id
])
pw
.
manage_delObjects
([
dummy_wor
k
flow_id
])
self
.
commit
()
self
.
commit
()
...
...
bt5/erp5_officejs_support_request_ui_test/SkinTemplateItem/portal_skins/erp5_officejs_support_request_test/ERP5Site_createSupportRequestUITestDataSet.py
View file @
87289ded
...
@@ -53,7 +53,7 @@ portal.support_request_module.newContent(
...
@@ -53,7 +53,7 @@ portal.support_request_module.newContent(
).
validate
()
).
validate
()
# create a campaign that should not appear in this worklist
# create a campaign that should not appear in this worklist
if
portal
.
portal_workflow
.
ticket_workflow
.
worklists
.
get
(
'0A_draft_campaign_list'
,
None
)
is
None
:
if
portal
.
portal_workflow
.
ticket_workflow
.
getWorklistValueById
(
'0A_draft_campaign_list'
)
is
None
:
raise
ValueError
(
'Without this worklist, tests have to be updated.'
)
raise
ValueError
(
'Without this worklist, tests have to be updated.'
)
portal
.
campaign_module
.
newContent
(
portal
.
campaign_module
.
newContent
(
portal_type
=
'Campaign'
,
portal_type
=
'Campaign'
,
...
...
bt5/erp5_trade/TestTemplateItem/portal_components/test.erp5.testOrderBuilder.py
View file @
87289ded
...
@@ -536,7 +536,7 @@ class TestOrderBuilder(TestOrderBuilderMixin, ERP5TypeTestCase):
...
@@ -536,7 +536,7 @@ class TestOrderBuilder(TestOrderBuilderMixin, ERP5TypeTestCase):
"""
"""
# changing type_list here is somehow dirty, decision would need to be taken if this is acceptable
# changing type_list here is somehow dirty, decision would need to be taken if this is acceptable
# for everyone to have auto_planned as part of future inventory
# for everyone to have auto_planned as part of future inventory
self
.
portal
.
portal_workflow
.
order_workflow
.
states
[
'auto_planned'
].
type_list
=
(
'planned_order'
,
'future_inventory'
)
self
.
portal
.
portal_workflow
.
order_workflow
.
getStateValueById
(
'auto_planned'
).
setStateTypeList
((
'planned_order'
,
'future_inventory'
)
)
self
.
portal
.
portal_caches
.
clearAllCache
()
self
.
portal
.
portal_caches
.
clearAllCache
()
self
.
assertTrue
(
'auto_planned'
in
self
.
portal
.
getPortalFutureInventoryStateList
())
self
.
assertTrue
(
'auto_planned'
in
self
.
portal
.
getPortalFutureInventoryStateList
())
# end of patch
# end of patch
...
...
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