From a7f9c6e7434294788691f7988dcb3163a9573265 Mon Sep 17 00:00:00 2001 From: fredfishgames Date: Fri, 8 Dec 2017 18:09:38 +0000 Subject: [PATCH] Fixed giphy warning message in bot tests --- zulip_bots/zulip_bots/bots/giphy/test_giphy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/bots/giphy/test_giphy.py b/zulip_bots/zulip_bots/bots/giphy/test_giphy.py index a6c34ff..34d97f4 100755 --- a/zulip_bots/zulip_bots/bots/giphy/test_giphy.py +++ b/zulip_bots/zulip_bots/bots/giphy/test_giphy.py @@ -45,7 +45,7 @@ class TestGiphyBot(StubBotTestCase): def test_connection_error(self) -> None: with self.mock_config_info({'key': '12345678'}), \ patch('requests.get', side_effect=ConnectionError()), \ - patch('logging.warning'): + patch('logging.exception'): self.verify_reply( 'world without chocolate', 'Uh oh, sorry :slightly_frowning_face:, I '