jx2lee commented on code in PR #46181:
URL: https://github.com/apache/airflow/pull/46181#discussion_r1937443493


##########
tests/dag_processing/test_dag_bundles.py:
##########
@@ -160,6 +184,16 @@ def test_correct_repo_urls(self, conn_id, 
expected_repo_url):
         hook = GitHook(git_conn_id=conn_id)
         assert hook.repo_url == expected_repo_url
 
+    def test_given_both_private_key_and_key_file(self):
+        with pytest.raises(
+            AirflowException, match="Both 'key_file' and 'private_key' cannot 
be provided at the same time"
+        ):
+            GitHook(git_conn_id=CONN_BOTH_PATH_INLINE)
+
+    def test_only_inline_connection_has_tmp_keyfile(self):

Review Comment:
   Hmm... private methods were only applied to the context manager, can you 
suggest test in GitDagBundle?



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