Prab-27 commented on code in PR #61235:
URL: https://github.com/apache/airflow/pull/61235#discussion_r2749136674


##########
providers/postgres/tests/unit/postgres/hooks/test_postgres.py:
##########
@@ -1272,3 +1272,7 @@ def test_dialect_name(self):
 
     def test_dialect(self):
         assert isinstance(self.db_hook.dialect, PostgresDialect)
+
+    def test_postgres_hook_invalid_conn_id():
+       with pytest.raises(Exception):
+         PostgresHook(postgres_conn_id=None)

Review Comment:
   You could also pass Airflow specific exceptions . 
   
   I believe something wrong here with - indentation ? 



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