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


##########
tests/providers/telegram/hooks/test_telegram.py:
##########
@@ -72,28 +71,31 @@ def 
test_should_raise_exception_if_conn_id_doesnt_contain_token(self):
 
         assert "Missing token(password) in Telegram connection" == 
str(ctx.value)
 
+    @pytest.mark.asyncio
     
@mock.patch("airflow.providers.telegram.hooks.telegram.TelegramHook.get_conn")
-    def test_should_raise_exception_if_chat_id_is_not_provided_anywhere(self, 
mock_get_conn):
+    async def 
test_should_raise_exception_if_chat_id_is_not_provided_anywhere(self, 
mock_get_conn):

Review Comment:
   Updated the hook and removed the need for the `async` methods



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to