Commit ee3016b4 authored by Łukasz Nowak's avatar Łukasz Nowak

Do not change state of documents in test.

Required notification is validated by Business Template itself.
parent 43d67ce0
...@@ -88,9 +88,6 @@ class TestVifibCredential(testVifibMixin): ...@@ -88,9 +88,6 @@ class TestVifibCredential(testVifibMixin):
self.portal.manage_delObjects(['MailHost']) self.portal.manage_delObjects(['MailHost'])
self.portal._setObject('MailHost', DummyMailHost('MailHost')) self.portal._setObject('MailHost', DummyMailHost('MailHost'))
for notification in self.portal.notification_message_module.objectValues():
if notification.getValidationState() == "draft":
notification.validate()
self.stepTic() self.stepTic()
def testMailMessagePosted(self): def testMailMessagePosted(self):
...@@ -149,4 +146,4 @@ class TestVifibCredential(testVifibMixin): ...@@ -149,4 +146,4 @@ class TestVifibCredential(testVifibMixin):
credential_request = portal_catalog.getResultValue(portal_type="Credential Request", credential_request = portal_catalog.getResultValue(portal_type="Credential Request",
reference="gabriel") reference="gabriel")
self.assertEquals(credential_request.getFirstName(), "Gabriel") self.assertEquals(credential_request.getFirstName(), "Gabriel")
self.assertEquals(credential_request.getDefaultEmailText(), "gabriel@test.com") self.assertEquals(credential_request.getDefaultEmailText(), "gabriel@test.com")
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment