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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
e76e1c0e
Commit
e76e1c0e
authored
Mar 14, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Update the tests
parent
ed39ee15
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
30 deletions
+67
-30
bt5/erp5_business_package/TestTemplateItem/portal_components/test.erp5.testBusinessPackage.py
...teItem/portal_components/test.erp5.testBusinessPackage.py
+37
-1
bt5/erp5_business_package/TestTemplateItem/portal_components/test.erp5.testBusinessPackage.xml
...eItem/portal_components/test.erp5.testBusinessPackage.xml
+30
-29
No files found.
bt5/erp5_business_package/TestTemplateItem/portal_components/test.erp5.testBusinessPackage.py
View file @
e76e1c0e
...
...
@@ -150,6 +150,41 @@ class TestBusinessPackage(ERP5TypeTestCase):
)
return
test_folder
# ********** TESTS FOR COMBINING MULTIPLE BUSINESS MANAGERS ************
#########################################################################
def
test_combineBusinessItemWithDifferentSign
(
self
):
"""
Same path, same value, differernt sign
"""
portal_templates
=
self
.
portal
.
portal_templates
managerA
=
self
.
_createBusinessManager
()
managerB
=
self
.
_createBusinessManager
()
test_folder
=
self
.
_addFolderInERP5
()
folder_path
=
test_folder
.
getRelativeUrl
()
path_item_folder_A
=
'%s | %s | %s'
%
(
folder_path
,
1
,
1
)
path_item_list_A
=
[
path_item_folder_A
]
managerA
.
_setTemplatePathList
(
path_item_list_A
)
managerA
.
build
()
path_item_folder_B
=
'%s | %s | %s'
%
(
folder_path
,
-
1
,
1
)
path_item_list_B
=
[
path_item_folder_B
]
managerB
.
_setTemplatePathList
(
path_item_list_B
)
managerB
.
build
()
bm_list
=
[
managerA
,
managerB
]
combinedBM
=
portal_templates
.
combinedBusinessManager
(
bm_list
)
# ********** TESTS FOR DIFFERENT INSTALLATION USE CASES ************
#####################################################################
def
test_useCase_I
(
self
):
"""
Case I: What to test here ?
...
...
@@ -353,8 +388,9 @@ class TestBusinessPackage(ERP5TypeTestCase):
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
installed_test_folder
=
self
.
portal
.
restrictedTraverse
(
folder_path
)
# Delete the object from ZODB so as we can install the object there
self
.
portal
.
manage_delObjects
([
test_folder
.
getId
(),])
self
.
portal
.
manage_delObjects
([
installed_
test_folder
.
getId
(),])
# Set catalog path item as path_item in managerA
managerA
.
_setTemplatePathList
([])
...
...
bt5/erp5_business_package/TestTemplateItem/portal_components/test.erp5.testBusinessPackage.xml
View file @
e76e1c0e
This diff is collapsed.
Click to expand it.
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