Improve test_api_key_only_webhook_view().
Improve test_api_key_only_webhook_view().

This test now covers all lines of api_key_only_webhook_view(),
including the error logic and rate limiting logic.

synicalsyntax/zulip,isht3/zulip,jainayush975/zulip,jainayush975/zulip,punchagan/zulip,zulip/zulip,jphilipsen05/zulip,eeshangarg/zulip,brockwhittaker/zulip,blaze225/zulip,showell/zulip,mahim97/zulip,sharmaeklavya2/zulip,sonali0901/zulip,JPJPJPOPOP/zulip,verma-varsha/zulip,timabbott/zulip,verma-varsha/zulip,dawran6/zulip,krtkmj/zulip,jainayush975/zulip,tommyip/zulip,reyha/zulip,Jianchun1/zulip,showell/zulip,rht/zulip,vaidap/zulip,ryanbackman/zulip,susansls/zulip,susansls/zulip,andersk/zulip,KingxBanana/zulip,brainwane/zulip,AZtheAsian/zulip,reyha/zulip,calvinleenyc/zulip,Diptanshu8/zulip,mohsenSy/zulip,arpith/zulip,tommyip/zulip,eeshangarg/zulip,Diptanshu8/zulip,SmartPeople/zulip,brainwane/zulip,niftynei/zulip,eeshangarg/zulip,dhcrzf/zulip,sup95/zulip,mahim97/zulip,PhilSk/zulip,SmartPeople/zulip,kou/zulip,amanharitsh123/zulip,dattatreya303/zulip,PhilSk/zulip,brainwane/zulip,aakash-cr7/zulip,umkay/zulip,punchagan/zulip,sharmaeklavya2/zulip,KingxBanana/zulip,vabs22/zulip,dawran6/zulip,vabs22/zulip,peguin40/zulip,tommyip/zulip,zacps/zulip,hackerkid/zulip,calvinleenyc/zulip,joyhchen/zulip,arpith/zulip,Diptanshu8/zulip,mahim97/zulip,vabs22/zulip,Diptanshu8/zulip,vikas-parashar/zulip,grave-w-grave/zulip,Juanvulcano/zulip,sonali0901/zulip,brockwhittaker/zulip,Galexrt/zulip,timabbott/zulip,brockwhittaker/zulip,krtkmj/zulip,zulip/zulip,Diptanshu8/zulip,susansls/zulip,eeshangarg/zulip,zulip/zulip,Galexrt/zulip,AZtheAsian/zulip,zulip/zulip,tommyip/zulip,isht3/zulip,calvinleenyc/zulip,brainwane/zulip,Juanvulcano/zulip,jrowan/zulip,christi3k/zulip,vikas-parashar/zulip,PhilSk/zulip,souravbadami/zulip,zacps/zulip,niftynei/zulip,sup95/zulip,vikas-parashar/zulip,isht3/zulip,grave-w-grave/zulip,SmartPeople/zulip,showell/zulip,jphilipsen05/zulip,blaze225/zulip,arpith/zulip,verma-varsha/zulip,TigorC/zulip,j831/zulip,zacps/zulip,blaze225/zulip,punchagan/zulip,dhcrzf/zulip,showell/zulip,rishig/zulip,mahim97/zulip,SmartPeople/zulip,ahmadassaf/zulip,krtkmj/zulip,cosmicAsymmetry/zulip,jrowan/zulip,paxapy/zulip,joyhchen/zulip,jrowan/zulip,samatdav/zulip,showell/zulip,ahmadassaf/zulip,souravbadami/zulip,aakash-cr7/zulip,sonali0901/zulip,sonali0901/zulip,jrowan/zulip,umkay/zulip,susansls/zulip,isht3/zulip,umkay/zulip,shubhamdhama/zulip,eeshangarg/zulip,shubhamdhama/zulip,christi3k/zulip,Juanvulcano/zulip,paxapy/zulip,jackrzhang/zulip,Juanvulcano/zulip,vabs22/zulip,timabbott/zulip,verma-varsha/zulip,christi3k/zulip,SmartPeople/zulip,blaze225/zulip,jackrzhang/zulip,sup95/zulip,JPJPJPOPOP/zulip,brainwane/zulip,shubhamdhama/zulip,niftynei/zulip,sharmaeklavya2/zulip,dattatreya303/zulip,mohsenSy/zulip,brainwane/zulip,umkay/zulip,hackerkid/zulip,eeshangarg/zulip,vaidap/zulip,amanharitsh123/zulip,cosmicAsymmetry/zulip,rht/zulip,umkay/zulip,rishig/zulip,j831/zulip,peguin40/zulip,Galexrt/zulip,andersk/zulip,jainayush975/zulip,rht/zulip,peguin40/zulip,umkay/zulip,rishig/zulip,timabbott/zulip,krtkmj/zulip,Galexrt/zulip,ahmadassaf/zulip,KingxBanana/zulip,amyliu345/zulip,ahmadassaf/zulip,Jianchun1/zulip,mohsenSy/zulip,rishig/zulip,calvinleenyc/zulip,mohsenSy/zulip,rht/zulip,eeshangarg/zulip,joyhchen/zulip,andersk/zulip,PhilSk/zulip,dawran6/zulip,ahmadassaf/zulip,Jianchun1/zulip,vabs22/zulip,vikas-parashar/zulip,rishig/zulip,mohsenSy/zulip,dattatreya303/zulip,dattatreya303/zulip,TigorC/zulip,grave-w-grave/zulip,zulip/zulip,joyhchen/zulip,AZtheAsian/zulip,aakash-cr7/zulip,sonali0901/zulip,hackerkid/zulip,jphilipsen05/zulip,umkay/zulip,dhcrzf/zulip,zacps/zulip,cosmicAsymmetry/zulip,jainayush975/zulip,sup95/zulip,JPJPJPOPOP/zulip,Galexrt/zulip,jphilipsen05/zulip,punchagan/zulip,sup95/zulip,vikas-parashar/zulip,andersk/zulip,peguin40/zulip,arpith/zulip,cosmicAsymmetry/zulip,Galexrt/zulip,dhcrzf/zulip,grave-w-grave/zulip,KingxBanana/zulip,amanharitsh123/zulip,rht/zulip,KingxBanana/zulip,timabbott/zulip,synicalsyntax/zulip,andersk/zulip,kou/zulip,isht3/zulip,jackrzhang/zulip,jainayush975/zulip,dattatreya303/zulip,vaidap/zulip,niftynei/zulip,isht3/zulip,sharmaeklavya2/zulip,TigorC/zulip,paxapy/zulip,kou/zulip,andersk/zulip,aakash-cr7/zulip,jackrzhang/zulip,ryanbackman/zulip,sup95/zulip,timabbott/zulip,kou/zulip,zulip/zulip,peguin40/zulip,j831/zulip,kou/zulip,sonali0901/zulip,mahim97/zulip,rht/zulip,samatdav/zulip,PhilSk/zulip,reyha/zulip,arpith/zulip,susansls/zulip,showell/zulip,christi3k/zulip,krtkmj/zulip,tommyip/zulip,TigorC/zulip,rishig/zulip,hackerkid/zulip,kou/zulip,joyhchen/zulip,niftynei/zulip,punchagan/zulip,hackerkid/zulip,dhcrzf/zulip,synicalsyntax/zulip,krtkmj/zulip,amyliu345/zulip,reyha/zulip,christi3k/zulip,mohsenSy/zulip,cosmicAsymmetry/zulip,tommyip/zulip,Jianchun1/zulip,zacps/zulip,ryanbackman/zulip,jrowan/zulip,tommyip/zulip,brockwhittaker/zulip,j831/zulip,amyliu345/zulip,SmartPeople/zulip,susansls/zulip,dhcrzf/zulip,jphilipsen05/zulip,arpith/zulip,zacps/zulip,Juanvulcano/zulip,vaidap/zulip,blaze225/zulip,jrowan/zulip,paxapy/zulip,brockwhittaker/zulip,dhcrzf/zulip,christi3k/zulip,AZtheAsian/zulip,brockwhittaker/zulip,peguin40/zulip,dawran6/zulip,samatdav/zulip,shubhamdhama/zulip,vikas-parashar/zulip,calvinleenyc/zulip,showell/zulip,souravbadami/zulip,ahmadassaf/zulip,andersk/zulip,joyhchen/zulip,dattatreya303/zulip,rishig/zulip,amanharitsh123/zulip,ahmadassaf/zulip,samatdav/zulip,j831/zulip,aakash-cr7/zulip,amanharitsh123/zulip,Jianchun1/zulip,aakash-cr7/zulip,rht/zulip,niftynei/zulip,reyha/zulip,amyliu345/zulip,kou/zulip,Jianchun1/zulip,TigorC/zulip,dawran6/zulip,vaidap/zulip,AZtheAsian/zulip,punchagan/zulip,grave-w-grave/zulip,synicalsyntax/zulip,JPJPJPOPOP/zulip,timabbott/zulip,jphilipsen05/zulip,reyha/zulip,zulip/zulip,JPJPJPOPOP/zulip,paxapy/zulip,souravbadami/zulip,AZtheAsian/zulip,souravbadami/zulip,samatdav/zulip,brainwane/zulip,jackrzhang/zulip,jackrzhang/zulip,dawran6/zulip,ryanbackman/zulip,KingxBanana/zulip,Diptanshu8/zulip,TigorC/zulip,souravbadami/zulip,JPJPJPOPOP/zulip,synicalsyntax/zulip,sharmaeklavya2/zulip,krtkmj/zulip,verma-varsha/zulip,synicalsyntax/zulip,Galexrt/zulip,synicalsyntax/zulip,vaidap/zulip,hackerkid/zulip,Juanvulcano/zulip,shubhamdhama/zulip,punchagan/zulip,samatdav/zulip,hackerkid/zulip,jackrzhang/zulip,verma-varsha/zulip,cosmicAsymmetry/zulip,grave-w-grave/zulip,amyliu345/zulip,amyliu345/zulip,paxapy/zulip,shubhamdhama/zulip,sharmaeklavya2/zulip,blaze225/zulip,vabs22/zulip,amanharitsh123/zulip,shubhamdhama/zulip,mahim97/zulip,calvinleenyc/zulip,ryanbackman/zulip,PhilSk/zulip,j831/zulip,ryanbackman/zulip