Brooke-white commented on a change in pull request #18447:
URL: https://github.com/apache/airflow/pull/18447#discussion_r719644641
##########
File path: tests/providers/amazon/aws/hooks/test_redshift.py
##########
@@ -103,3 +106,51 @@ def test_cluster_status_returns_available_cluster(self):
hook = RedshiftHook(aws_conn_id='aws_default')
status = hook.cluster_status('test_cluster')
assert status == 'available'
+
+
+class TestRedshiftSQLHookConn(unittest.TestCase):
+ def setUp(self):
+ super().setUp()
+
+ self.connection = Connection(login='login', password='password',
host='host', port=5439, schema="dev")
+
+ class UnitTestRedshiftSQLHook(RedshiftSQLHook):
+ conn_name_attr = "redshift_conn_id"
+ conn_type = 'redshift+redshift_connector'
Review comment:
yes, the subclass is unnecessary. remove it in
f6513ac03b06f2309f416749e215591e8443265c
--
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]