mirror of https://github.com/zulip/zulip.git
email_log: Reset the value of email after email change process.
This commit actually needs only user_profile.save() line but it's more readable with both the lines.
This commit is contained in:
parent
0667a62244
commit
432c9d3449
|
@ -88,6 +88,9 @@ def generate_all_emails(request):
|
||||||
user_profile = get_user(registered_email, realm)
|
user_profile = get_user(registered_email, realm)
|
||||||
result = client.get(url)
|
result = client.get(url)
|
||||||
assert result.status_code == 200
|
assert result.status_code == 200
|
||||||
|
# Reset the email value
|
||||||
|
user_profile.email = registered_email
|
||||||
|
user_profile.save()
|
||||||
|
|
||||||
# Follow up day1 day2 emails
|
# Follow up day1 day2 emails
|
||||||
enqueue_welcome_emails(user_profile)
|
enqueue_welcome_emails(user_profile)
|
||||||
|
|
Loading…
Reference in New Issue