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 5c6d379fd9 Resolve deprecations in `docker` provider tests (#39515) 5c6d379fd9 is described below commit 5c6d379fd9ba2c5997e6a26a0f04e8d6161beff3 Author: Andrey Anshin <andrey.ans...@taragol.is> AuthorDate: Thu May 9 21:11:10 2024 +0400 Resolve deprecations in `docker` provider tests (#39515) --- tests/deprecations_ignore.yml | 1 - tests/providers/docker/operators/test_docker.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/deprecations_ignore.yml b/tests/deprecations_ignore.yml index 4937c3ade1..6bb385c9d9 100644 --- a/tests/deprecations_ignore.yml +++ b/tests/deprecations_ignore.yml @@ -367,7 +367,6 @@ - tests/providers/databricks/operators/test_databricks.py::TestDatabricksSubmitRunDeferrableOperator::test_execute_task_deferred - tests/providers/databricks/sensors/test_databricks_partition.py::TestDatabricksPartitionSensor::test_unsupported_conn_type - tests/providers/databricks/sensors/test_databricks_sql.py::TestDatabricksSqlSensor::test_unsupported_conn_type -- tests/providers/docker/operators/test_docker.py::test_hook_usage - tests/providers/elasticsearch/log/test_es_task_handler.py::test_retrieve_retry_on_timeout - tests/providers/google/common/auth_backend/test_google_openid.py::TestGoogleOpenID::test_success - tests/providers/google/cloud/hooks/test_bigquery.py::TestBigQueryHookMethods::test_api_resource_configs diff --git a/tests/providers/docker/operators/test_docker.py b/tests/providers/docker/operators/test_docker.py index 6b4d196ad5..8a461f7c08 100644 --- a/tests/providers/docker/operators/test_docker.py +++ b/tests/providers/docker/operators/test_docker.py @@ -83,7 +83,8 @@ def test_hook_usage(docker_hook_patcher, docker_conn_id, tls_params: dict): **tls_params, ) hook = op.hook - assert hook is op.get_hook() + with pytest.warns(AirflowProviderDeprecationWarning, match="use `hook` property instead"): + assert hook is op.get_hook() docker_hook_patcher.assert_called_once_with( docker_conn_id=docker_conn_id,