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
Matevz Golob
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
Hide 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 @@
...
@@ -26,7 +26,7 @@
#
#
##############################################################################
##############################################################################
from
collections
import
Counter
import
unittest
import
unittest
import
os
import
os
...
@@ -133,11 +133,15 @@ class TestOOoImport(TestOOoImportMixin):
...
@@ -133,11 +133,15 @@ class TestOOoImport(TestOOoImportMixin):
person_module
.
Base_importFile
(
import_file
=
f
,
listbox
=
listbox
)
person_module
.
Base_importFile
(
import_file
=
f
,
listbox
=
listbox
)
def
stepCheckActivitiesCount
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
def
stepCheckActivitiesCount
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
message_list
=
self
.
getPortal
().
portal_activities
.
getMessageList
()
activity_count_by_method_dict
=
Counter
(
self
.
assertEqual
(
102
,
len
(
message_list
))
x
.
method_id
'''for i in range(101):
for
x
in
self
.
getPortal
().
portal_activities
.
getMessageList
()
method_id = message_list[i].method_id
)
self.assertEqual('Base_importFileLine',method_id)'''
self
.
assertEqual
(
101
,
activity_count_by_method_dict
[
'Base_importFileLineDefaultScript'
],
activity_count_by_method_dict
,
)
def
stepCheckImportedPersonList
(
self
,
sequence
=
None
,
sequence_list
=
None
,
def
stepCheckImportedPersonList
(
self
,
sequence
=
None
,
sequence_list
=
None
,
num
=
101
,
**
kw
):
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