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
Nicolas Wavrant
erp5
Commits
dffdf67b
Commit
dffdf67b
authored
Mar 20, 2018
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! erp5_interface_post: first commit of test_exportAllExportableLetterPostInAPDFDocument
parent
9554d419
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
bt5/erp5_interface_post/TestTemplateItem/portal_components/test.erp5.testInterfacePost.py
...lateItem/portal_components/test.erp5.testInterfacePost.py
+12
-6
No files found.
bt5/erp5_interface_post/TestTemplateItem/portal_components/test.erp5.testInterfacePost.py
View file @
dffdf67b
...
...
@@ -219,6 +219,12 @@ class TestInterfacePost(ERP5TypeTestCase):
self
.
assertEqual
(
len
(
letter_post_list
),
len
(
sequence
[
'letter_list'
]))
for
letter_post
in
letter_post_list
:
self
.
assertEqual
(
letter_post
.
getSimulationState
(),
'exportable'
)
self
.
assertTrue
(
letter_post
.
hasData
())
self
.
assertEqual
(
letter_post
.
getContentType
(),
'application/pdf'
)
self
.
assertIn
(
letter_post
.
getAggregateRelatedValue
(),
sequence
[
'letter_list'
]
)
def
stepCheckAllLetterPostAreExported
(
self
,
sequence
=
None
,
sequence_list
=
None
):
letter_post_list
=
self
.
_portal_catalog
(
...
...
@@ -339,6 +345,12 @@ class TestInterfacePost(ERP5TypeTestCase):
def
stepLaunchExportOnLetterPostModule
(
self
,
sequence
=
None
,
sequence_list
=
None
):
self
.
portal
.
letter_post_module
.
LetterPostModule_exportExportableLetterPostActivity
(
user_name
=
self
.
user
.
getUserId
())
def
stepCheckAggregatingPDFDocument
(
self
,
sequence
=
None
,
sequence_list
=
None
):
pdf_document_list
=
self
.
_portal_catalog
(
portal_type
=
'PDF'
)
self
.
assertEqual
(
len
(
pdf_document_list
),
1
)
pdf_document
,
=
pdf_document_list
self
.
assertEqual
(
2
,
int
(
pdf_document
.
getContentInformation
()[
'Pages'
]))
def
test_emailSendingIsPilotedByInternetMessagePost
(
self
):
"""
"""
...
...
@@ -414,12 +426,6 @@ class TestInterfacePost(ERP5TypeTestCase):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
stepCheckAggregatingPDFDocument
(
self
,
sequence
=
None
,
sequence_list
=
None
):
pdf_document_list
=
self
.
_portal_catalog
(
portal_type
=
'PDF'
)
self
.
assertEqual
(
len
(
pdf_document_list
),
1
)
pdf_document
,
=
pdf_document_list
self
.
assertEqual
(
2
,
int
(
pdf_document
.
getContentInformation
()[
'Pages'
]))
def
test_exportAllExportableLetterPostInAPDFDocument
(
self
):
"""
Test the action on Letter Post Module to export all exportable Letter Posts
...
...
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