This is an automated email from the ASF dual-hosted git repository.
taragolis 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 ed3a478177 Fix Google cloud tests which are incompatible with
`aiohttp==3.8.6` (#34822)
ed3a478177 is described below
commit ed3a47817741d78056e098827ce418648d5baea4
Author: Andrey Anshin <[email protected]>
AuthorDate: Sun Oct 8 20:43:48 2023 +0400
Fix Google cloud tests which are incompatible with `aiohttp==3.8.6` (#34822)
---
tests/providers/google/cloud/hooks/test_cloud_sql.py | 4 ++--
tests/providers/google/cloud/hooks/test_datafusion.py | 4 ++--
tests/providers/google/cloud/hooks/test_mlengine.py | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/providers/google/cloud/hooks/test_cloud_sql.py
b/tests/providers/google/cloud/hooks/test_cloud_sql.py
index 0d90f8d0c9..70ac3cbab7 100644
--- a/tests/providers/google/cloud/hooks/test_cloud_sql.py
+++ b/tests/providers/google/cloud/hooks/test_cloud_sql.py
@@ -1277,7 +1277,7 @@ class TestCloudSQLAsyncHook:
timer=TimerNoop(),
traces=[],
loop=mock.Mock(),
- session=session,
+ session=None,
)
response.status = 200
mocked_get.return_value = response
@@ -1300,7 +1300,7 @@ class TestCloudSQLAsyncHook:
timer=TimerNoop(),
traces=[],
loop=mock.Mock(),
- session=session,
+ session=None,
)
response.status = 200
mocked_get.return_value = response
diff --git a/tests/providers/google/cloud/hooks/test_datafusion.py
b/tests/providers/google/cloud/hooks/test_datafusion.py
index cfef7f4d1b..7358c334fd 100644
--- a/tests/providers/google/cloud/hooks/test_datafusion.py
+++ b/tests/providers/google/cloud/hooks/test_datafusion.py
@@ -580,7 +580,7 @@ class TestDataFusionHookAsynch:
timer=TimerNoop(),
traces=[],
loop=mock.Mock(),
- session=session,
+ session=None,
)
response.status = 200
mocked_get.return_value = response
@@ -618,7 +618,7 @@ class TestDataFusionHookAsynch:
timer=TimerNoop(),
traces=[],
loop=mock.Mock(),
- session=session,
+ session=None,
)
response.status = 200
mocked_get.return_value = response
diff --git a/tests/providers/google/cloud/hooks/test_mlengine.py
b/tests/providers/google/cloud/hooks/test_mlengine.py
index cf560cf179..415e466754 100644
--- a/tests/providers/google/cloud/hooks/test_mlengine.py
+++ b/tests/providers/google/cloud/hooks/test_mlengine.py
@@ -1060,7 +1060,7 @@ async def
test_async_get_job_status_should_execute_successfully(mocked_get):
timer=TimerNoop(),
traces=[],
loop=mock.Mock(),
- session=session,
+ session=None,
)
mocked_get.return_value._headers = {"Content-Type":
"application/json;charset=cp1251"}
mocked_get.return_value._body = b'{"state": "SUCCEEDED"}'
@@ -1083,7 +1083,7 @@ async def
test_async_get_job_status_still_running_should_execute_successfully(mo
timer=TimerNoop(),
traces=[],
loop=mock.Mock(),
- session=session,
+ session=None,
)
mocked_get.return_value._headers = {"Content-Type":
"application/json;charset=cp1251"}
mocked_get.return_value._body = b'{"state": "RUNNING"}'