You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2025/10/16 10:02:38 UTC
(airflow) branch main updated: Remove unnecessary use of mock item on test body (#56712)
This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 8f182ba910f Remove unnecessary use of mock item on test body (#56712)
8f182ba910f is described below
commit 8f182ba910f1dae87e49621ae68af0af8c2ff70a
Author: Ephraim Anierobi <sp...@gmail.com>
AuthorDate: Thu Oct 16 11:02:30 2025 +0100
Remove unnecessary use of mock item on test body (#56712)
Came across this and it is something to clean up
---
task-sdk/tests/task_sdk/bases/test_hook.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/task-sdk/tests/task_sdk/bases/test_hook.py b/task-sdk/tests/task_sdk/bases/test_hook.py
index df1c28593e9..eb0cefd19a7 100644
--- a/task-sdk/tests/task_sdk/bases/test_hook.py
+++ b/task-sdk/tests/task_sdk/bases/test_hook.py
@@ -84,7 +84,6 @@ class TestBaseHook:
def test_get_connection_not_found(self, sdk_connection_not_found):
conn_id = "test_conn"
hook = BaseHook()
- sdk_connection_not_found
with pytest.raises(AirflowNotFoundException, match="The conn_id `test_conn` isn't defined"):
hook.get_connection(conn_id=conn_id)
@@ -94,7 +93,6 @@ class TestBaseHook:
"""Test async connection not found error."""
conn_id = "test_conn"
hook = BaseHook()
- sdk_connection_not_found
with pytest.raises(AirflowNotFoundException, match="The conn_id `test_conn` isn't defined"):
await hook.aget_connection(conn_id=conn_id)