This is an automated email from the ASF dual-hosted git repository.
shahar1 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 eb4803e6d63 Remove duplicate HTTP header override test (#75899)
eb4803e6d63 is described below
commit eb4803e6d63dca29ceea66b6fa8da585c59baa95
Author: Hussein Awala <[email protected]>
AuthorDate: Thu Oct 29 06:22:25 2026 +0100
Remove duplicate HTTP header override test (#75899)
Both tests use the same hook and connection extras and assert the same
explicit bearer-header override.
---
providers/http/tests/unit/http/hooks/test_http.py | 4 ----
1 file changed, 4 deletions(-)
diff --git a/providers/http/tests/unit/http/hooks/test_http.py
b/providers/http/tests/unit/http/hooks/test_http.py
index c983d68229e..66d8595ae3b 100644
--- a/providers/http/tests/unit/http/hooks/test_http.py
+++ b/providers/http/tests/unit/http/hooks/test_http.py
@@ -289,10 +289,6 @@ class TestHttpHook:
assert requests_mock.last_request.url ==
"http://test.com:1234/v1/test?test%20params"
assert requests_mock.last_request.method == "GET"
- def test_hook_uses_provided_header(self):
- conn = self.get_hook.get_conn(headers={"bearer": "newT0k3n"})
- assert conn.headers.get("bearer") == "newT0k3n"
-
def test_hook_has_no_header_from_extra(self):
self.get_hook.http_conn_id = "http_conn_without_bearer"
conn = self.get_hook.get_conn()