Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
3b7aa99e
Commit
3b7aa99e
authored
Jan 22, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix random failures of testERP5Credential
parent
b07f81a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
product/ERP5/tests/testERP5Credential.py
product/ERP5/tests/testERP5Credential.py
+5
-4
No files found.
product/ERP5/tests/testERP5Credential.py
View file @
3b7aa99e
...
@@ -297,7 +297,7 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -297,7 +297,7 @@ class TestERP5Credential(ERP5TypeTestCase):
credential_request
=
portal_catalog
.
getResultValue
(
credential_request
=
portal_catalog
.
getResultValue
(
portal_type
=
"Credential Request"
,
reference
=
reference
)
portal_type
=
"Credential Request"
,
reference
=
reference
)
mail_message
=
portal_catalog
.
getResultValue
(
portal_type
=
"Mail Message"
,
mail_message
=
portal_catalog
.
getResultValue
(
portal_type
=
"Mail Message"
,
follow_up
=
credential_request
)
default_follow_up_uid
=
credential_request
.
getUid
()
)
self
.
tic
()
self
.
tic
()
self
.
logout
()
self
.
logout
()
self
.
portal
.
ERP5Site_activeLogin
(
mail_message
.
getReference
())
self
.
portal
.
ERP5Site_activeLogin
(
mail_message
.
getReference
())
...
@@ -824,7 +824,7 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -824,7 +824,7 @@ class TestERP5Credential(ERP5TypeTestCase):
credential_reference
=
portal_catalog
.
getResultValue
(
credential_reference
=
portal_catalog
.
getResultValue
(
portal_type
=
"Credential Request"
,
reference
=
credential_reference_str
)
portal_type
=
"Credential Request"
,
reference
=
credential_reference_str
)
mail_message
=
portal_catalog
.
getResultValue
(
portal_type
=
"Mail Message"
,
mail_message
=
portal_catalog
.
getResultValue
(
portal_type
=
"Mail Message"
,
follow_up
=
credential_reference
)
default_follow_up_uid
=
credential_reference
.
getUid
()
)
self
.
assertEquals
(
mail_message
.
getSimulationState
(),
"started"
)
self
.
assertEquals
(
mail_message
.
getSimulationState
(),
"started"
)
self
.
assertTrue
(
"key=%s"
%
mail_message
.
getReference
()
in
mail_message
.
getTextContent
())
self
.
assertTrue
(
"key=%s"
%
mail_message
.
getReference
()
in
mail_message
.
getTextContent
())
...
@@ -1056,7 +1056,8 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -1056,7 +1056,8 @@ class TestERP5Credential(ERP5TypeTestCase):
portal_type
=
"Credential Request"
,
reference
=
"vifibtest"
,
portal_type
=
"Credential Request"
,
reference
=
"vifibtest"
,
first_name
=
"Vifib"
,
last_name
=
"Test"
)
first_name
=
"Vifib"
,
last_name
=
"Test"
)
mail_message
=
portal_catalog
.
getResultValue
(
mail_message
=
portal_catalog
.
getResultValue
(
portal_type
=
"Mail Message"
,
follow_up
=
credential_request
)
portal_type
=
"Mail Message"
,
default_follow_up_uid
=
credential_request
.
getUid
())
last_message
=
self
.
portal
.
MailHost
.
_last_message
last_message
=
self
.
portal
.
MailHost
.
_last_message
self
.
assertNotEquals
((),
last_message
)
self
.
assertNotEquals
((),
last_message
)
mfrom
,
mto
,
message_text
=
last_message
mfrom
,
mto
,
message_text
=
last_message
...
@@ -1105,7 +1106,7 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -1105,7 +1106,7 @@ class TestERP5Credential(ERP5TypeTestCase):
credential_request = portal_catalog.getResultValue(
credential_request = portal_catalog.getResultValue(
portal_type="
Credential
Request
", reference="
barney
")
portal_type="
Credential
Request
", reference="
barney
")
mail_message = portal_catalog.getResultValue(portal_type="
Mail
Message
",
mail_message = portal_catalog.getResultValue(portal_type="
Mail
Message
",
follow_up=credential_request
)
default_follow_up_uid=credential_request.getUid()
)
self.logout()
self.logout()
self.portal.ERP5Site_activeLogin(mail_message.getReference())
self.portal.ERP5Site_activeLogin(mail_message.getReference())
self.login("
ERP5TypeTestCase
")
self.login("
ERP5TypeTestCase
")
...
...
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