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

Take care of email unicity.

parent 70ebae68
...@@ -6088,13 +6088,14 @@ class TestVifibSlapWebService(TestVifibSlapWebServiceMixin): ...@@ -6088,13 +6088,14 @@ class TestVifibSlapWebService(TestVifibSlapWebServiceMixin):
######################################## ########################################
def stepRequestCredentialFromWebSite(self, sequence, **kw): def stepRequestCredentialFromWebSite(self, sequence, **kw):
sequence['web_useremail'] = '%s@example.com' % random()
sequence['web_user'] = '%s.%s' % (self.id(), random()) sequence['web_user'] = '%s.%s' % (self.id(), random())
self.portal.ERP5Site_newCredentialRequest(\ self.portal.ERP5Site_newCredentialRequest(\
first_name='Homer', first_name='Homer',
last_name='Simpson', last_name='Simpson',
reference=sequence['web_user'], reference=sequence['web_user'],
password='secret', password='secret',
default_email_text='homer.simpson@fox.com', default_email_text=sequence['web_user_email'],
) )
def stepSubmitCredentialRequest(self, sequence, **kw): def stepSubmitCredentialRequest(self, sequence, **kw):
...@@ -6160,7 +6161,7 @@ class TestVifibSlapWebService(TestVifibSlapWebServiceMixin): ...@@ -6160,7 +6161,7 @@ class TestVifibSlapWebService(TestVifibSlapWebServiceMixin):
last_name=sequence['updated_last_name'], last_name=sequence['updated_last_name'],
reference=sequence['web_user'], reference=sequence['web_user'],
password='secret', password='secret',
default_email_text='homer.simpson@fox.com', default_email_text=sequence['web_user_email'],
) )
self.assertTrue('Credential%20Update%20Created' in result) self.assertTrue('Credential%20Update%20Created' in result)
......
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