This is an automated email from the ASF dual-hosted git repository.
kaxilnaik 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 0caf410258 Fix the missing pytest fixture aioresponse for
non_existent_endpoint (#29540)
0caf410258 is described below
commit 0caf41025853d4f1b9f05f722b207d51b470a5ae
Author: Ankit Chaurasia <[email protected]>
AuthorDate: Wed Feb 15 01:49:14 2023 +0545
Fix the missing pytest fixture aioresponse for non_existent_endpoint
(#29540)
---
tests/providers/http/hooks/test_http.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/providers/http/hooks/test_http.py
b/tests/providers/http/hooks/test_http.py
index 820c45c5a3..ee8f4ff46b 100644
--- a/tests/providers/http/hooks/test_http.py
+++ b/tests/providers/http/hooks/test_http.py
@@ -428,6 +428,7 @@ async def test_do_api_call_async_retryable_error(caplog,
aioresponse):
"""Test api call asynchronously with retryable error."""
caplog.set_level(logging.WARNING,
logger="airflow.providers.http.hooks.http")
hook = HttpAsyncHook(method="GET")
+ aioresponse.get("http://httpbin.org/non_existent_endpoint", status=500,
repeat=True)
with pytest.raises(AirflowException) as exc, mock.patch.dict(
"os.environ",