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
e00eec68
Commit
e00eec68
authored
Mar 31, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Update tests for property in path list
parent
8ddaf72f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
41 deletions
+39
-41
bt5/erp5_business_package/TestTemplateItem/portal_components/test.erp5.testBusinessPackage.py
...teItem/portal_components/test.erp5.testBusinessPackage.py
+10
-12
bt5/erp5_business_package/TestTemplateItem/portal_components/test.erp5.testBusinessPackage.xml
...eItem/portal_components/test.erp5.testBusinessPackage.xml
+29
-29
No files found.
bt5/erp5_business_package/TestTemplateItem/portal_components/test.erp5.testBusinessPackage.py
View file @
e00eec68
...
...
@@ -514,8 +514,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
with
self
.
assertRaises
(
ValueError
)
as
context
:
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
'
in
context
.
exception
)
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
#short_title'
in
context
.
exception
)
def
test_useCase_VI
(
self
):
"""
...
...
@@ -599,7 +599,7 @@ class TestBusinessPackage(ERP5TypeTestCase):
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
self
.
assert
Equals
(
test_folder
.
getProperty
(
'short_title'
),
''
)
self
.
assert
In
(
test_folder
.
getProperty
(
'short_title'
),
(
''
,
None
)
)
def
test_useCase_VII
(
self
):
"""
...
...
@@ -763,12 +763,13 @@ class TestBusinessPackage(ERP5TypeTestCase):
with
self
.
assertRaises
(
ValueError
)
as
context
:
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
self
.
assertTrue
(
'Object at test_folder removed by user'
in
self
.
assertTrue
(
'Object at test_folder
#short_title
removed by user'
in
context
.
exception
)
def
test_useCase_IX
(
self
):
"""
Case IX:
A A _ : _
"""
portal_templates
=
self
.
portal
.
portal_templates
managerA
=
self
.
_createBusinessManager
()
...
...
@@ -796,9 +797,6 @@ class TestBusinessPackage(ERP5TypeTestCase):
installed_test_folder
=
self
.
portal
.
restrictedTraverse
(
folder_path
)
self
.
assertEquals
(
installed_test_folder
.
getTitle
(),
'couscous'
)
# Delete the object again from ZODB
self
.
portal
.
manage_delObjects
([
test_folder
.
getId
(),])
# Set empty path item as path_item in managerA
managerA
.
_setTemplatePathList
([])
...
...
@@ -1012,7 +1010,7 @@ class TestBusinessPackage(ERP5TypeTestCase):
# Install the Business Manager
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
self
.
assertEquals
(
test_folder
.
getProperty
(
'short_title'
),
'
new_
foo'
)
self
.
assertEquals
(
test_folder
.
getProperty
(
'short_title'
),
'foo'
)
test_folder
.
setProperty
(
'short_title'
,
'new_foo'
)
# Copy the Business Manager object, updated version of managerA
...
...
@@ -1113,8 +1111,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
with
self
.
assertRaises
(
ValueError
)
as
context
:
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
'
in
context
.
exception
)
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
#short_title'
in
context
.
exception
)
def
test_useCase_XIII
(
self
):
...
...
@@ -1292,8 +1290,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
with
self
.
assertRaises
(
ValueError
)
as
context
:
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
'
in
context
.
exception
)
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
#short_title'
in
context
.
exception
)
def
_migrateCatalogBTToBM
(
self
):
"""
...
...
bt5/erp5_business_package/TestTemplateItem/portal_components/test.erp5.testBusinessPackage.xml
View file @
e00eec68
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