tests: Remove ignored parameters from bots tests.

`service_interface` is not a parameter of `add_bot_backend`, but
`interface_type` is, and that has the same default value as what
was being provided by the test, so updated for the parameter name
change, which was possibly missed in a previous code refactor.
This commit is contained in:
Lauryn Menard 2022-04-07 18:09:00 +02:00 committed by Tim Abbott
parent 260012a87e
commit c8d8e82118
1 changed files with 1 additions and 1 deletions

View File

@ -1448,7 +1448,7 @@ class BotTest(ZulipTestCase, UploadSerializeMixin):
"short_name": "hambot", "short_name": "hambot",
"bot_type": UserProfile.OUTGOING_WEBHOOK_BOT, "bot_type": UserProfile.OUTGOING_WEBHOOK_BOT,
"payload_url": orjson.dumps("http://foo.bar.com").decode(), "payload_url": orjson.dumps("http://foo.bar.com").decode(),
"service_interface": Service.GENERIC, "interface_type": Service.GENERIC,
} }
result = self.client_post("/json/bots", bot_info) result = self.client_post("/json/bots", bot_info)
self.assert_json_success(result) self.assert_json_success(result)