invites: Call confirmation worker consumer in tests.

This makes the automated tests for this queue publish more faithful.
This commit is contained in:
Tim Abbott 2017-10-19 14:02:44 -07:00
parent 3264e4f24a
commit 1698f979d0
1 changed files with 2 additions and 1 deletions

View File

@ -3690,7 +3690,8 @@ def do_invite_users(user_profile, invitee_emails, streams, body=None):
event = {"email": prereg_user.email, "referrer_id": user_profile.id, "email_body": body} event = {"email": prereg_user.email, "referrer_id": user_profile.id, "email_body": body}
queue_json_publish("invites", event, queue_json_publish("invites", event,
lambda event: do_send_confirmation_email(prereg_user, user_profile, body)) lambda event: None,
call_consume_in_tests=True)
if skipped: if skipped:
raise InvitationError(_("Some of those addresses are already using Zulip, " raise InvitationError(_("Some of those addresses are already using Zulip, "