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
Léo-Paul Géneau
erp5
Commits
2ea3ce9b
Commit
2ea3ce9b
authored
May 25, 2011
by
Nicolas Delaby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reflect recent changes on Event_finishIngestion
parent
1d8cc93a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
product/ERP5/tests/testERP5WebWithCRM.py
product/ERP5/tests/testERP5WebWithCRM.py
+21
-2
No files found.
product/ERP5/tests/testERP5WebWithCRM.py
View file @
2ea3ce9b
...
@@ -125,7 +125,26 @@ class TestERP5WebWithCRM(ERP5TypeTestCase):
...
@@ -125,7 +125,26 @@ class TestERP5WebWithCRM(ERP5TypeTestCase):
self
.
portal
.
portal_alarms
.
fetch_incoming_web_message_list
.
activeSense
()
self
.
portal
.
portal_alarms
.
fetch_incoming_web_message_list
.
activeSense
()
transaction
.
commit
()
transaction
.
commit
()
self
.
tic
()
self
.
tic
()
self
.
assertEquals
(
event
.
getSimulationState
(),
'new'
)
self
.
assertEquals
(
event
.
getSimulationState
(),
'acknowledged'
)
ticket
=
event
.
getFollowUpValue
()
self
.
assertTrue
(
ticket
is
not
None
)
self
.
assertEquals
(
ticket
.
getSimulationState
(),
'submitted'
)
person
=
event
.
getSourceValue
()
self
.
assertTrue
(
person
is
not
None
)
self
.
assertEquals
(
person
.
getFirstName
(),
form_kw
[
'source_person_first_name'
])
self
.
assertEquals
(
person
.
getLastName
(),
form_kw
[
'source_person_last_name'
])
self
.
assertEquals
(
person
.
getDefaultEmailText
(),
form_kw
[
'source_person_default_email_text'
])
self
.
assertTrue
(
form_kw
[
'source_person_default_telephone_text'
]
in
\
person
.
getDefaultTelephoneText
())
self
.
assertEquals
(
person
.
getValidationState
(),
'validated'
)
organisation
=
person
.
getSubordinationValue
()
self
.
assertTrue
(
organisation
is
not
None
)
self
.
assertEquals
(
organisation
.
getValidationState
(),
'validated'
)
self
.
assertEquals
(
organisation
.
getTitle
(),
form_kw
[
'source_organisation_title'
])
def
test_02_Contact_Us_with_Aunthenticated_user
(
self
):
def
test_02_Contact_Us_with_Aunthenticated_user
(
self
):
"""Test creation of Web Message with Authenticted User
"""Test creation of Web Message with Authenticted User
...
@@ -159,7 +178,7 @@ class TestERP5WebWithCRM(ERP5TypeTestCase):
...
@@ -159,7 +178,7 @@ class TestERP5WebWithCRM(ERP5TypeTestCase):
self
.
portal
.
portal_alarms
.
fetch_incoming_web_message_list
.
activeSense
()
self
.
portal
.
portal_alarms
.
fetch_incoming_web_message_list
.
activeSense
()
transaction
.
commit
()
transaction
.
commit
()
self
.
tic
()
self
.
tic
()
self
.
assertEquals
(
event
.
getSimulationState
(),
'
new
'
)
self
.
assertEquals
(
event
.
getSimulationState
(),
'
acknowledged
'
)
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
...
...
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