mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
invites: Call confirmation worker consumer in tests.
This makes the automated tests for this queue publish more faithful.
This commit is contained in:
@@ -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, "
|
||||||
|
|||||||
Reference in New Issue
Block a user