diff --git a/tests/api_fastapi/core_api/routes/public/test_dag_stats.py b/tests/api_fastapi/core_api/routes/public/test_dag_stats.py index 5287f3ef58aad..164028b903f98 100644 --- a/tests/api_fastapi/core_api/routes/public/test_dag_stats.py +++ b/tests/api_fastapi/core_api/routes/public/test_dag_stats.py @@ -134,6 +134,7 @@ def _create_dag_runs(self, session): state="success", ) session.add_all((dag_1_run_1, dag_1_run_2, dag_2_run_1, dag_3_run_1)) + session.commit() class TestGetDagStats(TestDagStatsEndpoint):