This is an automated email from the ASF dual-hosted git repository.
amoghdesai 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 2d56d2626c8 Consuming get_execution_app fixture in remaining usages
(#50603)
2d56d2626c8 is described below
commit 2d56d2626c84089f156a56137647498a6ad2ee7a
Author: Amogh Desai <[email protected]>
AuthorDate: Wed May 14 20:20:55 2025 +0530
Consuming get_execution_app fixture in remaining usages (#50603)
---
.../execution_api/versions/v2025_04_28/test_task_instances.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/airflow-core/tests/unit/api_fastapi/execution_api/versions/v2025_04_28/test_task_instances.py
b/airflow-core/tests/unit/api_fastapi/execution_api/versions/v2025_04_28/test_task_instances.py
index fce29c4b2e5..579559edc0a 100644
---
a/airflow-core/tests/unit/api_fastapi/execution_api/versions/v2025_04_28/test_task_instances.py
+++
b/airflow-core/tests/unit/api_fastapi/execution_api/versions/v2025_04_28/test_task_instances.py
@@ -79,6 +79,7 @@ class TestTIUpdateState:
time_machine,
mock_indexes,
expected_response_indexes,
+ get_execution_app,
):
"""
Test that this version of the endpoint works.
@@ -101,7 +102,7 @@ class TestTIUpdateState:
dag = ti.task.dag
dagbag = create_dag_bag()
dagbag.dags = {dag.dag_id: dag}
- execution_app = next(route.app for route in ver_client.app.routes if
route.path == "/execution")
+ execution_app = get_execution_app(ver_client)
execution_app.dependency_overrides[dag_bag_from_app] = lambda: dagbag
session.commit()