@@ -226,7 +226,16 @@ def test_dataset_append_async(dataset: Dataset):
226226 "PayloadUrl" : "" ,
227227 "image_upload_step" : {"errored" : 0 , "pending" : 0 , "completed" : 5 },
228228 "started_image_processing" : f"Dataset: { dataset .id } , Job: { job .job_id } " ,
229+ "ingest_to_reupload_queue" : {
230+ "epoch" : 1 ,
231+ "total" : 5 ,
232+ "datasetId" : f"{ dataset .id } " ,
233+ "processed" : 5 ,
234+ },
229235 },
236+ "job_progress" : "1.00" ,
237+ "completed_steps" : 5 ,
238+ "total_steps" : 5 ,
230239 }
231240
232241
@@ -253,9 +262,23 @@ def test_dataset_append_async_with_1_bad_url(dataset: Dataset):
253262 "status" : "Errored" ,
254263 "message" : {
255264 "PayloadUrl" : "" ,
265+ "final_error" : (
266+ "One or more of the images you attempted to upload did not process"
267+ " correctly. Please see the status for an overview and the errors for "
268+ "more detailed messages."
269+ ),
256270 "image_upload_step" : {"errored" : 1 , "pending" : 0 , "completed" : 4 },
271+ "ingest_to_reupload_queue" : {
272+ "epoch" : 1 ,
273+ "total" : 5 ,
274+ "datasetId" : f"{ dataset .id } " ,
275+ "processed" : 5 ,
276+ },
257277 "started_image_processing" : f"Dataset: { dataset .id } , Job: { job .job_id } " ,
258278 },
279+ "job_progress" : "1.00" ,
280+ "completed_steps" : 1 ,
281+ "total_steps" : 1 ,
259282 }
260283 # The error is fairly detailed and subject to change. What's important is we surface which URLs failed.
261284 assert (
@@ -337,6 +360,9 @@ def test_annotate_async(dataset: Dataset):
337360 "processed" : 1 ,
338361 },
339362 },
363+ "job_progress" : "1.00" ,
364+ "completed_steps" : 3 ,
365+ "total_steps" : 3 ,
340366 }
341367
342368
@@ -372,6 +398,9 @@ def test_annotate_async_with_error(dataset: Dataset):
372398 "processed" : 1 ,
373399 },
374400 },
401+ "job_progress" : "0.67" ,
402+ "completed_steps" : 2 ,
403+ "total_steps" : 3 ,
375404 }
376405
377406 assert "Item with id fake_garbage doesn" in str (job .errors ())
0 commit comments