@@ -135,7 +135,8 @@ async def runs_with_same_job(
135135 async_session ,
136136 run_kwargs = {
137137 "job_id" : job .id ,
138- "created_at" : started_at + timedelta (seconds = s ), # To be sure runs has different timestamps
138+ # To be sure runs has different timestamps
139+ "created_at" : started_at + timedelta (seconds = s ),
139140 "started_by_user_id" : user .id ,
140141 ** params ,
141142 },
@@ -167,7 +168,8 @@ async def runs_with_same_parent(
167168 async_session ,
168169 run_kwargs = {
169170 "parent_run_id" : parent_run_id ,
170- "created_at" : started_at + timedelta (seconds = s ), # To be sure runs has different timestamps
171+ # To be sure runs has different timestamps
172+ "created_at" : started_at + timedelta (seconds = s ),
171173 "started_by_user_id" : user .id ,
172174 ** params ,
173175 },
@@ -193,10 +195,10 @@ async def runs_search(
193195 {"name" : "airflow_dag_name" , "type" : "AIRFLOW_DAG" },
194196 ]
195197 runs_kwargs = [
196- {"external_id" : "application_1638922609021_0001" },
197- {"external_id" : "application_1638922609021_0002" },
198- {"external_id" : "extract_task_0001" },
199- {"external_id" : "extract_task_0002" },
198+ {"external_id" : "application_1638922609021_0001" , "status" : 3 },
199+ {"external_id" : "application_1638922609021_0002" , "status" : 1 },
200+ {"external_id" : "extract_task_0001" , "status" : 0 },
201+ {"external_id" : "extract_task_0002" , "status" : 2 },
200202 ]
201203 started_at = datetime .now (tz = UTC )
202204 async with async_session_maker () as async_session :
0 commit comments