Taragolis commented on code in PR #28953:
URL: https://github.com/apache/airflow/pull/28953#discussion_r1071185679


##########
tests/providers/telegram/hooks/test_telegram.py:
##########
@@ -128,7 +128,7 @@ def 
test_should_send_message_if_chat_id_is_provided_through_constructor(self, mo
 
     
@mock.patch("airflow.providers.telegram.hooks.telegram.TelegramHook.get_conn")
     def test_should_send_message_if_chat_id_is_provided_in_connection(self, 
mock_get_conn):
-        mock_get_conn.return_value = mock.Mock(password="some_token")
+        mock_get_conn.return_value = mock.AsyncMock(password="some_token")

Review Comment:
   Sorry, I should mention this before



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to