zerver/lib/test_helpers.py: Wrap function in lambda.
zerver/lib/test_helpers.py: Wrap function in lambda.

Wrap `list.append` in a lambda before assigning it to
event_queue.process_notification to prevent errors when
event_queue.process_notification is used with keyword arguments.

This also removes an error message by mypy 0.4.7.

vaidap/zulip,tommyip/zulip,JPJPJPOPOP/zulip,vabs22/zulip,kou/zulip,brockwhittaker/zulip,samatdav/zulip,ryanbackman/zulip,amanharitsh123/zulip,susansls/zulip,jphilipsen05/zulip,JPJPJPOPOP/zulip,dawran6/zulip,Galexrt/zulip,dhcrzf/zulip,susansls/zulip,ryanbackman/zulip,amanharitsh123/zulip,jphilipsen05/zulip,tommyip/zulip,mahim97/zulip,dattatreya303/zulip,jackrzhang/zulip,amanharitsh123/zulip,souravbadami/zulip,eeshangarg/zulip,j831/zulip,punchagan/zulip,hackerkid/zulip,SmartPeople/zulip,rht/zulip,Galexrt/zulip,kou/zulip,jackrzhang/zulip,dattatreya303/zulip,zulip/zulip,timabbott/zulip,amanharitsh123/zulip,brainwane/zulip,blaze225/zulip,mahim97/zulip,ryanbackman/zulip,timabbott/zulip,zulip/zulip,shubhamdhama/zulip,synicalsyntax/zulip,jainayush975/zulip,SmartPeople/zulip,hackerkid/zulip,dawran6/zulip,dawran6/zulip,dhcrzf/zulip,SmartPeople/zulip,mahim97/zulip,PhilSk/zulip,rht/zulip,andersk/zulip,verma-varsha/zulip,j831/zulip,jainayush975/zulip,vabs22/zulip,synicalsyntax/zulip,shubhamdhama/zulip,punchagan/zulip,timabbott/zulip,blaze225/zulip,christi3k/zulip,punchagan/zulip,vabs22/zulip,eeshangarg/zulip,jackrzhang/zulip,samatdav/zulip,synicalsyntax/zulip,tommyip/zulip,verma-varsha/zulip,jphilipsen05/zulip,hackerkid/zulip,dattatreya303/zulip,jackrzhang/zulip,verma-varsha/zulip,timabbott/zulip,brainwane/zulip,dattatreya303/zulip,rishig/zulip,aakash-cr7/zulip,jainayush975/zulip,souravbadami/zulip,dattatreya303/zulip,j831/zulip,sonali0901/zulip,vaidap/zulip,brainwane/zulip,brainwane/zulip,shubhamdhama/zulip,susansls/zulip,andersk/zulip,jphilipsen05/zulip,eeshangarg/zulip,dhcrzf/zulip,verma-varsha/zulip,ryanbackman/zulip,ryanbackman/zulip,timabbott/zulip,blaze225/zulip,aakash-cr7/zulip,amanharitsh123/zulip,tommyip/zulip,sonali0901/zulip,rht/zulip,jackrzhang/zulip,hackerkid/zulip,dawran6/zulip,PhilSk/zulip,punchagan/zulip,brockwhittaker/zulip,samatdav/zulip,JPJPJPOPOP/zulip,showell/zulip,andersk/zulip,rht/zulip,dawran6/zulip,jrowan/zulip,eeshangarg/zulip,jphilipsen05/zulip,tommyip/zulip,aakash-cr7/zulip,shubhamdhama/zulip,zulip/zulip,JPJPJPOPOP/zulip,dhcrzf/zulip,blaze225/zulip,christi3k/zulip,Galexrt/zulip,jphilipsen05/zulip,andersk/zulip,blaze225/zulip,eeshangarg/zulip,j831/zulip,jainayush975/zulip,kou/zulip,showell/zulip,jainayush975/zulip,hackerkid/zulip,tommyip/zulip,jrowan/zulip,aakash-cr7/zulip,brainwane/zulip,samatdav/zulip,shubhamdhama/zulip,souravbadami/zulip,sonali0901/zulip,sonali0901/zulip,vaidap/zulip,sonali0901/zulip,souravbadami/zulip,brockwhittaker/zulip,vabs22/zulip,zulip/zulip,shubhamdhama/zulip,brainwane/zulip,rht/zulip,vaidap/zulip,blaze225/zulip,showell/zulip,JPJPJPOPOP/zulip,rishig/zulip,jrowan/zulip,timabbott/zulip,vabs22/zulip,rishig/zulip,rht/zulip,brockwhittaker/zulip,zulip/zulip,rishig/zulip,PhilSk/zulip,susansls/zulip,SmartPeople/zulip,PhilSk/zulip,jrowan/zulip,souravbadami/zulip,punchagan/zulip,andersk/zulip,hackerkid/zulip,mahim97/zulip,vaidap/zulip,jackrzhang/zulip,eeshangarg/zulip,mahim97/zulip,j831/zulip,rishig/zulip,aakash-cr7/zulip,synicalsyntax/zulip,mahim97/zulip,jrowan/zulip,vaidap/zulip,zulip/zulip,punchagan/zulip,jainayush975/zulip,showell/zulip,dhcrzf/zulip,j831/zulip,Galexrt/zulip,SmartPeople/zulip,andersk/zulip,jrowan/zulip,JPJPJPOPOP/zulip,brainwane/zulip,souravbadami/zulip,Galexrt/zulip,susansls/zulip,brockwhittaker/zulip,kou/zulip,PhilSk/zulip,PhilSk/zulip,brockwhittaker/zulip,synicalsyntax/zulip,dattatreya303/zulip,showell/zulip,dhcrzf/zulip,sonali0901/zulip,verma-varsha/zulip,showell/zulip,synicalsyntax/zulip,dawran6/zulip,amanharitsh123/zulip,verma-varsha/zulip,rishig/zulip,hackerkid/zulip,jackrzhang/zulip,rht/zulip,kou/zulip,kou/zulip,christi3k/zulip,Galexrt/zulip,susansls/zulip,kou/zulip,andersk/zulip,SmartPeople/zulip,samatdav/zulip,ryanbackman/zulip,showell/zulip,shubhamdhama/zulip,samatdav/zulip,timabbott/zulip,vabs22/zulip,zulip/zulip,punchagan/zulip,christi3k/zulip,aakash-cr7/zulip,tommyip/zulip,rishig/zulip,synicalsyntax/zulip,dhcrzf/zulip,eeshangarg/zulip,Galexrt/zulip,christi3k/zulip,christi3k/zulip