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
Georgios Dagkakis
erp5
Commits
69e0e8ac
Commit
69e0e8ac
authored
Dec 23, 2020
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core_test: rename categorie to avoid conflict with method defined on Base
parent
5d5cfdc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testBusinessTemplate.py
...eItem/portal_components/test.erp5.testBusinessTemplate.py
+12
-12
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testBusinessTemplate.py
View file @
69e0e8ac
...
...
@@ -6899,17 +6899,17 @@ class TestBusinessTemplate(BusinessTemplateMixin):
Updating from:
portal_categories/test_category/modified
portal_categories/test_category/modified/container_in_which_child_is_added
portal_categories/test_category/modified/container_in_which_child_is_added/child_kept
portal_categories/test_category/modified/removed
portal_categories/test_category/modified
_category
portal_categories/test_category/modified
_category
/container_in_which_child_is_added
portal_categories/test_category/modified
_category
/container_in_which_child_is_added/child_kept
portal_categories/test_category/modified
_category
/removed
to:
portal_categories/test_category/modified <-- this will be modified
portal_categories/test_category/modified/container_in_which_child_is_added
portal_categories/test_category/modified/container_in_which_child_is_added/child_kept
portal_categories/test_category/modified/container_in_which_child_is_added/added
portal_categories/test_category/modified
_category
<-- this will be modified
portal_categories/test_category/modified
_category
/container_in_which_child_is_added
portal_categories/test_category/modified
_category
/container_in_which_child_is_added/child_kept
portal_categories/test_category/modified
_category
/container_in_which_child_is_added/added
was causing when test_category was added both as a base category and as paths.
...
...
@@ -6920,7 +6920,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
portal_categories
.
manage_delObjects
([
'test_category'
])
base_category
=
portal_categories
.
newContent
(
portal_type
=
'Base Category'
,
id
=
'test_category'
)
parent_category
=
base_category
.
newContent
(
portal_type
=
'Category'
,
id
=
'modified'
)
parent_category
=
base_category
.
newContent
(
portal_type
=
'Category'
,
id
=
'modified
_category
'
)
parent_category
.
newContent
(
portal_type
=
'Category'
,
id
=
'container_in_which_child_is_added'
)
parent_category
.
newContent
(
portal_type
=
'Category'
,
id
=
'removed'
)
parent_category
.
container_in_which_child_is_added
.
newContent
(
portal_type
=
'Category'
,
id
=
'child_kept'
)
...
...
@@ -6945,7 +6945,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
shutil
.
rmtree
(
export_dir
)
# Apply the changes and build a second version of business template
parent_category
.
setTitle
(
'modified'
)
parent_category
.
setTitle
(
'modified
_category
'
)
parent_category
.
container_in_which_child_is_added
.
newContent
(
portal_type
=
'Category'
,
id
=
'added'
)
parent_category
.
manage_delObjects
([
'removed'
])
...
...
@@ -6959,7 +6959,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
self
.
tic
()
new_business_template_version_1
.
install
()
self
.
tic
()
portal_categories
.
test_category
.
modified
.
container_in_which_child_is_added
.
setTitle
(
portal_categories
.
test_category
.
modified
_category
.
container_in_which_child_is_added
.
setTitle
(
'This path should not be reinstalled during update'
)
self
.
tic
()
...
...
@@ -6971,7 +6971,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
self
.
tic
()
self
.
assertEqual
(
'This path should not be reinstalled during update'
,
portal_categories
.
test_category
.
modified
.
container_in_which_child_is_added
.
getTitle
())
portal_categories
.
test_category
.
modified
_category
.
container_in_which_child_is_added
.
getTitle
())
def
test_update_business_template_with_template_keep_path_list_catalog_method
(
self
):
"""Tests for `template_keep_path_list` feature for the special case of catalog methods
...
...
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