mik-laj commented on a change in pull request #10081:
URL: https://github.com/apache/airflow/pull/10081#discussion_r465935540



##########
File path: tests/cli/commands/test_connection_command.py
##########
@@ -111,6 +112,227 @@ def test_cli_connections_include_secrets(self):
             connection_command.connections_list(args)
 
 
+class TestCliExportConnections(unittest.TestCase):
+    @provide_session
+    def setUp(self, session=None):
+        clear_db_connections(add_default_connections_back=False)
+        merge_conn(
+            Connection(
+                conn_id="airflow_db",
+                conn_type="mysql",
+                host="mysql",
+                login="root",
+                password="",
+                schema="airflow",
+            ),
+            session
+        )
+        merge_conn(
+            Connection(
+                conn_id="druid_broker_default",
+                conn_type="druid",
+                host="druid-broker",
+                port=8082,
+                extra='{"endpoint": "druid/v2/sql"}',
+            ),
+            session
+        )
+
+        self.parser = cli_parser.get_parser()
+
+    def tearDown(self):
+        clear_db_connections(add_default_connections_back=False)

Review comment:
       ```suggestion
           clear_db_connections(add_default_connections_back=True)
   ```




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

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


Reply via email to