From 7519fd1e729eca6de6b6e0375eac72da85498df2 Mon Sep 17 00:00:00 2001 From: Omkar P <45419097+omkar-foss@users.noreply.github.com> Date: Tue, 22 Oct 2024 18:45:04 +0530 Subject: [PATCH] Add session commit --- tests/api_fastapi/core_api/routes/public/test_dag_stats.py | 1 + 1 file changed, 1 insertion(+) 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):