mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
tornado_redirected_to_list: Make expected_num_events required argument.
Follow up to 481a890ec5.
This will make this more explicit and readable.
This commit is contained in:
committed by
Tim Abbott
parent
07f972f45a
commit
3039a01b31
@@ -1259,7 +1259,7 @@ Output:
|
||||
|
||||
@contextmanager
|
||||
def tornado_redirected_to_list(
|
||||
self, lst: List[Mapping[str, Any]], expected_num_events: int = 1
|
||||
self, lst: List[Mapping[str, Any]], expected_num_events: int
|
||||
) -> Iterator[None]:
|
||||
real_event_queue_process_notification = django_tornado_api.process_notification
|
||||
django_tornado_api.process_notification = lambda notice: lst.append(notice)
|
||||
|
||||
Reference in New Issue
Block a user