shahar1 commented on code in PR #40140:
URL: https://github.com/apache/airflow/pull/40140#discussion_r1632060397


##########
tests/providers/apache/kafka/hooks/test_consume.py:
##########
@@ -52,13 +52,8 @@ def setup_method(self):
                 extra=json.dumps({}),
             )
         )
+        self.hook = KafkaConsumerHook(["test_1"], kafka_config_id="kafka_d")
 
-    def test_init(self):
-        """test initialization of AdminClientHook"""
+    def test_get_consumer(self):
+        assert self.hook.get_consumer() == self.hook.get_conn
 
-        # Standard Init
-        KafkaConsumerHook(["test_1"], kafka_config_id="kafka_d")
-
-        # Not Enough Args
-        with pytest.raises(ValueError):
-            KafkaConsumerHook(["test_1"], kafka_config_id="kafka_bad")

Review Comment:
   This one fails, so I had to remove it



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