@@ -19,6 +19,7 @@ def test_create_from_url(model_run_with_model_run_data_rows,
1919 assert annotation_import .model_run_id == model_run_with_model_run_data_rows .uid
2020 annotation_import_test_helpers .check_running_state (annotation_import , name ,
2121 url )
22+ annotation_import .wait_until_done ()
2223
2324
2425def test_create_from_objects (model_run_with_model_run_data_rows ,
@@ -33,6 +34,7 @@ def test_create_from_objects(model_run_with_model_run_data_rows,
3334 annotation_import_test_helpers .check_running_state (annotation_import , name )
3435 annotation_import_test_helpers .assert_file_content (
3536 annotation_import .input_file_url , object_predictions )
37+ annotation_import .wait_until_done ()
3638
3739
3840def test_create_from_local_file (tmp_path , model_run_with_model_run_data_rows ,
@@ -51,6 +53,7 @@ def test_create_from_local_file(tmp_path, model_run_with_model_run_data_rows,
5153 annotation_import_test_helpers .check_running_state (annotation_import , name )
5254 annotation_import_test_helpers .assert_file_content (
5355 annotation_import .input_file_url , object_predictions )
56+ annotation_import .wait_until_done ()
5457
5558
5659def test_get (client , model_run_with_model_run_data_rows ,
@@ -66,6 +69,7 @@ def test_get(client, model_run_with_model_run_data_rows,
6669 assert annotation_import .model_run_id == model_run_with_model_run_data_rows .uid
6770 annotation_import_test_helpers .check_running_state (annotation_import , name ,
6871 url )
72+ annotation_import .wait_until_done ()
6973
7074
7175@pytest .mark .slow
0 commit comments