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:
Abhijeet Prasad Bodas
2021-05-28 10:57:50 +05:30
committed by Tim Abbott
parent 07f972f45a
commit 3039a01b31
10 changed files with 44 additions and 44 deletions

View File

@@ -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)