tests: Call real consume method of queue processors.

This switches to more real tests for a first batch of
queue_json_publish() calls that don't cause trouble when
used with call_consume_tests=True.
This commit is contained in:
derAnfaenger
2017-10-19 15:02:03 +02:00
committed by Tim Abbott
parent 18e5bcbbb1
commit 1792dcbd09
9 changed files with 13 additions and 6 deletions

View File

@@ -353,7 +353,8 @@ def do_send_missedmessage_events_reply_in_zulip(user_profile, missed_messages, m
'from_address': from_address,
'reply_to_email': formataddr((reply_to_name, reply_to_address)),
'context': context}
queue_json_publish("missedmessage_email_senders", email_dict, send_email_from_dict)
queue_json_publish("missedmessage_email_senders", email_dict, send_email_from_dict,
call_consume_in_tests=True)
user_profile.last_reminder = timezone_now()
user_profile.save(update_fields=['last_reminder'])