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
Mikolaï Krol
erp5
Commits
003bb75c
Commit
003bb75c
authored
Feb 07, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testOOoImport: Be less sensitive to other activity sources.
parent
5574edac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
product/ERP5OOo/tests/testOOoImport.py
product/ERP5OOo/tests/testOOoImport.py
+10
-6
No files found.
product/ERP5OOo/tests/testOOoImport.py
View file @
003bb75c
...
...
@@ -26,7 +26,7 @@
#
##############################################################################
from
collections
import
Counter
import
unittest
import
os
...
...
@@ -133,11 +133,15 @@ class TestOOoImport(TestOOoImportMixin):
person_module
.
Base_importFile
(
import_file
=
f
,
listbox
=
listbox
)
def
stepCheckActivitiesCount
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
message_list
=
self
.
getPortal
().
portal_activities
.
getMessageList
()
self
.
assertEqual
(
102
,
len
(
message_list
))
'''for i in range(101):
method_id = message_list[i].method_id
self.assertEqual('Base_importFileLine',method_id)'''
activity_count_by_method_dict
=
Counter
(
x
.
method_id
for
x
in
self
.
getPortal
().
portal_activities
.
getMessageList
()
)
self
.
assertEqual
(
101
,
activity_count_by_method_dict
[
'Base_importFileLineDefaultScript'
],
activity_count_by_method_dict
,
)
def
stepCheckImportedPersonList
(
self
,
sequence
=
None
,
sequence_list
=
None
,
num
=
101
,
**
kw
):
...
...
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