mirror of https://github.com/zulip/zulip.git
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:
parent
260012a87e
commit
c8d8e82118
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue