Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_bots: Remove misleading comment.
Mateusz Mandera7ebeffbcdcde
diff --git a/zerver/tests/test_bots.py b/zerver/tests/test_bots.pyindex b4f97532bd4..58ba3cd02ad 100644--- a/zerver/tests/test_bots.py+++ b/zerver/tests/test_bots.py@@ -580,14 +580,13 @@ class BotTest(ZulipTestCase, UploadSerializeMixin):self.deactivate_bot()self.assert_num_bots_equal(0)- def test_deactivate_bogus_bot(self) -> None:- """Deleting a bogus bot will succeed silently."""+ def test_deactivate_bot_invalid_id(self) -> None:self.login("hamlet")self.assert_num_bots_equal(0)self.create_bot()self.assert_num_bots_equal(1)- invalid_user_id = 1000- result = self.client_delete(f"/json/bots/{invalid_user_id}")+ invalid_bot_id = 1000+ result = self.client_delete(f"/json/bots/{invalid_bot_id}")self.assert_json_error(result, "No such bot")self.assert_num_bots_equal(1)