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
05dba6ea
Commit
05dba6ea
authored
Feb 01, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testTrashTool: py3
parent
85ec3867
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testTrashTool.py
...TemplateItem/portal_components/test.erp5.testTrashTool.py
+4
-4
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testTrashTool.py
View file @
05dba6ea
...
@@ -267,7 +267,7 @@ class TestTrashTool(ERP5TypeTestCase):
...
@@ -267,7 +267,7 @@ class TestTrashTool(ERP5TypeTestCase):
bc_path
=
base_category
.
getPath
().
split
(
'/'
)[
2
:
-
1
]
bc_path
=
base_category
.
getPath
().
split
(
'/'
)[
2
:
-
1
]
# check backup
# check backup
backup_subobjects_ids
=
trash
.
backupObject
(
trashbin
,
bc_path
,
bc_id
,
save
=
1
)
backup_subobjects_ids
=
trash
.
backupObject
(
trashbin
,
bc_path
,
bc_id
,
save
=
1
)
self
.
assert
True
(
backup_subobjects_ids
.
keys
().
sort
()
==
list
(
subobjects_ids
).
sort
(
))
self
.
assert
Equal
(
sorted
(
backup_subobjects_ids
.
keys
()),
sorted
(
subobjects_ids
))
def
stepBackupFolderObjectsWithSave
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
def
stepBackupFolderObjectsWithSave
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""
"""
...
@@ -297,7 +297,7 @@ class TestTrashTool(ERP5TypeTestCase):
...
@@ -297,7 +297,7 @@ class TestTrashTool(ERP5TypeTestCase):
bc_path
=
base_category
.
getPath
().
split
(
'/'
)[
1
:
-
1
]
bc_path
=
base_category
.
getPath
().
split
(
'/'
)[
1
:
-
1
]
# check backup
# check backup
backup_subobjects_ids
=
trash
.
backupObject
(
trashbin
,
bc_path
,
bc_id
,
save
=
0
)
backup_subobjects_ids
=
trash
.
backupObject
(
trashbin
,
bc_path
,
bc_id
,
save
=
0
)
self
.
assert
True
(
backup_subobjects_ids
.
keys
().
sort
()
==
list
(
subobjects_ids
).
sort
(
))
self
.
assert
Equal
(
sorted
(
backup_subobjects_ids
.
keys
()),
sorted
(
subobjects_ids
))
def
stepBackupObjectsWithKeepingSubobjects
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
def
stepBackupObjectsWithKeepingSubobjects
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""
"""
...
@@ -359,8 +359,8 @@ class TestTrashTool(ERP5TypeTestCase):
...
@@ -359,8 +359,8 @@ class TestTrashTool(ERP5TypeTestCase):
def
stepCheckRestore
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
def
stepCheckRestore
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
bc_id
=
sequence
.
get
(
'bc_id'
)
bc_id
=
sequence
.
get
(
'bc_id'
)
bc
=
self
.
portal
.
portal_categories
[
bc_id
]
bc
=
self
.
portal
.
portal_categories
[
bc_id
]
self
.
assert
True
(
self
.
assert
Equal
(
sorted
(
bc
.
objectIds
())
==
sorted
(
sequence
.
get
(
'category_id_list'
))
sorted
(
bc
.
objectIds
())
,
sorted
(
sequence
.
get
(
'category_id_list'
))
)
)
self
.
assertEqual
(
self
.
assertEqual
(
len
(
len
(
...
...
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