diff --git a/tests/deprecations_ignore.yml b/tests/deprecations_ignore.yml index 4937c3ade1a5d9..6bb385c9d9ada9 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 6b4d196ad562aa..8a461f7c084a70 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,