Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve deprecations in docker provider tests #39515

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tests/deprecations_ignore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,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