Skip to content

Commit

Permalink
Resolve deprecations in docker provider tests (apache#39515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taragolis authored and pateash committed May 13, 2024
1 parent 9a9cf27 commit eceb99f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/deprecations_ignore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/providers/docker/operators/test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eceb99f

Please sign in to comment.