Skip to content

Commit 2d56d26

Browse files
authored
Consuming get_execution_app fixture in remaining usages (#50603)
1 parent 290f632 commit 2d56d26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

airflow-core/tests/unit/api_fastapi/execution_api/versions/v2025_04_28/test_task_instances.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def test_ti_run(
7979
time_machine,
8080
mock_indexes,
8181
expected_response_indexes,
82+
get_execution_app,
8283
):
8384
"""
8485
Test that this version of the endpoint works.
@@ -101,7 +102,7 @@ def test_ti_run(
101102
dag = ti.task.dag
102103
dagbag = create_dag_bag()
103104
dagbag.dags = {dag.dag_id: dag}
104-
execution_app = next(route.app for route in ver_client.app.routes if route.path == "/execution")
105+
execution_app = get_execution_app(ver_client)
105106
execution_app.dependency_overrides[dag_bag_from_app] = lambda: dagbag
106107
session.commit()
107108

0 commit comments

Comments
 (0)