Fixed giphy warning message in bot tests

This commit is contained in:
fredfishgames 2017-12-08 18:09:38 +00:00 committed by showell
parent a026c48278
commit a7f9c6e743

View file

@ -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 '