@@ -811,33 +811,35 @@ def test__handle_message_event_with_flags(self, mocker,
811
811
812
812
@pytest .mark .parametrize ('response, narrow, recipients, log' , [
813
813
({'type' : 'stream' , 'stream_id' : 1 , 'subject' : 'FOO' ,
814
- 'id' : 1 }, [], frozenset (), ['msg_w' ]),
815
- ({'type' : 'private' , 'id' : 1 },
814
+ 'id' : 1 , 'sender_id' : 1 , 'display_recipient' : 'a' },
815
+ [], frozenset (), ['msg_w' ]),
816
+ ({'type' : 'private' , 'id' : 1 , 'sender_id' : 1 , 'subject' : 'FOO' ,
817
+ 'display_recipient' : 'a' },
816
818
[['is' , 'private' ]], frozenset (), ['msg_w' ]),
817
819
({'type' : 'stream' , 'id' : 1 , 'stream_id' : 1 , 'subject' : 'FOO' ,
818
- 'display_recipient' : 'a' },
820
+ 'display_recipient' : 'a' , 'sender_id' : 1 },
819
821
[['stream' , 'a' ]], frozenset (), ['msg_w' ]),
820
822
({'type' : 'stream' , 'id' : 1 , 'stream_id' : 1 , 'subject' : 'b' ,
821
- 'display_recipient' : 'a' },
823
+ 'display_recipient' : 'a' , 'sender_id' : 1 },
822
824
[['stream' , 'a' ], ['topic' , 'b' ]],
823
825
frozenset (), ['msg_w' ]),
824
826
({'type' : 'stream' , 'id' : 1 , 'stream_id' : 1 , 'subject' : 'b' ,
825
- 'display_recipient' : 'a' },
827
+ 'display_recipient' : 'a' , 'sender_id' : 1 },
826
828
[['stream' , 'c' ], ['topic' , 'b' ]],
827
829
frozenset (), []),
828
- ({'type' : 'private' , 'id' : 1 ,
830
+ ({'type' : 'private' , 'id' : 1 , 'sender_id' : 1 , 'subject' : 'FOO' ,
829
831
'display_recipient' : [{'id' : 5827 }, {'id' : 5 }]},
830
832
[['pm_with' , 'notification-bot@zulip.com' ]],
831
833
frozenset ({5827 , 5 }), ['msg_w' ]),
832
- ({'type' : 'private' , 'id' : 1 } ,
833
- [['is' , 'search' ]],
834
+ ({'type' : 'private' , 'id' : 1 , 'sender_id' : 1 , 'subject' : 'FOO' ,
835
+ 'display_recipient' : 'a' }, [['is' , 'search' ]],
834
836
frozenset (), []),
835
- ({'type' : 'private' , 'id' : 1 ,
837
+ ({'type' : 'private' , 'id' : 1 , 'sender_id' : 1 , 'subject' : 'FOO' ,
836
838
'display_recipient' : [{'id' : 5827 }, {'id' : 3212 }]},
837
839
[['pm_with' , 'notification-bot@zulip.com' ]],
838
840
frozenset ({5827 , 5 }), []),
839
841
({'type' : 'stream' , 'id' : 1 , 'stream_id' : 1 , 'subject' : 'c' ,
840
- 'display_recipient' : 'a' , 'flags' : ['mentioned' ]},
842
+ 'display_recipient' : 'a' , 'sender_id' : 1 , ' flags' : ['mentioned' ]},
841
843
[['is' , 'mentioned' ]], frozenset (), ['msg_w' ]),
842
844
], ids = ['stream_to_all_messages' , 'private_to_all_private' ,
843
845
'stream_to_stream' , 'stream_to_topic' ,
0 commit comments