Fixed giphy warning message in bot tests
This commit is contained in:
parent
a026c48278
commit
a7f9c6e743
|
@ -45,7 +45,7 @@ class TestGiphyBot(StubBotTestCase):
|
||||||
def test_connection_error(self) -> None:
|
def test_connection_error(self) -> None:
|
||||||
with self.mock_config_info({'key': '12345678'}), \
|
with self.mock_config_info({'key': '12345678'}), \
|
||||||
patch('requests.get', side_effect=ConnectionError()), \
|
patch('requests.get', side_effect=ConnectionError()), \
|
||||||
patch('logging.warning'):
|
patch('logging.exception'):
|
||||||
self.verify_reply(
|
self.verify_reply(
|
||||||
'world without chocolate',
|
'world without chocolate',
|
||||||
'Uh oh, sorry :slightly_frowning_face:, I '
|
'Uh oh, sorry :slightly_frowning_face:, I '
|
||||||
|
|
Loading…
Reference in a new issue