Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
d0586403
Commit
d0586403
authored
Mar 31, 2017
by
Ayush Tiwari
Committed by
Ayush Tiwari
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Update tests for property in path list
parent
2b46b3fb
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 @
d0586403
...
@@ -514,8 +514,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
...
@@ -514,8 +514,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
with
self
.
assertRaises
(
ValueError
)
as
context
:
with
self
.
assertRaises
(
ValueError
)
as
context
:
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
'
in
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
#short_title'
context
.
exception
)
in
context
.
exception
)
def
test_useCase_VI
(
self
):
def
test_useCase_VI
(
self
):
"""
"""
...
@@ -599,7 +599,7 @@ class TestBusinessPackage(ERP5TypeTestCase):
...
@@ -599,7 +599,7 @@ class TestBusinessPackage(ERP5TypeTestCase):
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
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
):
def
test_useCase_VII
(
self
):
"""
"""
...
@@ -763,12 +763,13 @@ class TestBusinessPackage(ERP5TypeTestCase):
...
@@ -763,12 +763,13 @@ class TestBusinessPackage(ERP5TypeTestCase):
with
self
.
assertRaises
(
ValueError
)
as
context
:
with
self
.
assertRaises
(
ValueError
)
as
context
:
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
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
)
context
.
exception
)
def
test_useCase_IX
(
self
):
def
test_useCase_IX
(
self
):
"""
"""
Case IX:
Case IX:
A A _ : _
"""
"""
portal_templates
=
self
.
portal
.
portal_templates
portal_templates
=
self
.
portal
.
portal_templates
managerA
=
self
.
_createBusinessManager
()
managerA
=
self
.
_createBusinessManager
()
...
@@ -796,9 +797,6 @@ class TestBusinessPackage(ERP5TypeTestCase):
...
@@ -796,9 +797,6 @@ class TestBusinessPackage(ERP5TypeTestCase):
installed_test_folder
=
self
.
portal
.
restrictedTraverse
(
folder_path
)
installed_test_folder
=
self
.
portal
.
restrictedTraverse
(
folder_path
)
self
.
assertEquals
(
installed_test_folder
.
getTitle
(),
'couscous'
)
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
# Set empty path item as path_item in managerA
managerA
.
_setTemplatePathList
([])
managerA
.
_setTemplatePathList
([])
...
@@ -1012,7 +1010,7 @@ class TestBusinessPackage(ERP5TypeTestCase):
...
@@ -1012,7 +1010,7 @@ class TestBusinessPackage(ERP5TypeTestCase):
# Install the Business Manager
# Install the Business Manager
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
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'
)
test_folder
.
setProperty
(
'short_title'
,
'new_foo'
)
# Copy the Business Manager object, updated version of managerA
# Copy the Business Manager object, updated version of managerA
...
@@ -1113,8 +1111,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
...
@@ -1113,8 +1111,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
with
self
.
assertRaises
(
ValueError
)
as
context
:
with
self
.
assertRaises
(
ValueError
)
as
context
:
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
'
in
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
#short_title'
context
.
exception
)
in
context
.
exception
)
def
test_useCase_XIII
(
self
):
def
test_useCase_XIII
(
self
):
...
@@ -1292,8 +1290,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
...
@@ -1292,8 +1290,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
with
self
.
assertRaises
(
ValueError
)
as
context
:
with
self
.
assertRaises
(
ValueError
)
as
context
:
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
portal_templates
.
installMultipleBusinessManager
([
managerA_new
,])
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
'
in
self
.
assertTrue
(
'Trying to remove changes at ZODB at test_folder
#short_title'
context
.
exception
)
in
context
.
exception
)
def
_migrateCatalogBTToBM
(
self
):
def
_migrateCatalogBTToBM
(
self
):
"""
"""
...
...
bt5/erp5_business_package/TestTemplateItem/portal_components/test.erp5.testBusinessPackage.xml
View file @
d0586403
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