File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -1054,7 +1054,7 @@ def delete_annotations(
1054
1054
if reference_ids :
1055
1055
payload [REFERENCE_IDS_KEY ] = reference_ids
1056
1056
response = self .make_request (
1057
- {} ,
1057
+ payload ,
1058
1058
f"annotation/{ dataset_id } " ,
1059
1059
requests_command = requests .delete ,
1060
1060
)
Original file line number Diff line number Diff line change @@ -302,3 +302,19 @@ def test_polygon_gt_upload_ignore(dataset):
302
302
assert_polygon_annotation_matches_dict (
303
303
response_annotation , TEST_POLYGON_ANNOTATIONS [0 ]
304
304
)
305
+
306
+ @pytest .mark .integration
307
+ def test_box_gt_deletion (dataset ):
308
+ annotation = BoxAnnotation (** TEST_BOX_ANNOTATIONS [0 ])
309
+
310
+ print (annotation )
311
+
312
+ response = dataset .annotate (annotations = [annotation ])
313
+
314
+ assert response ["annotations_processed" ] == 1
315
+
316
+ job = dataset .delete_annotations ()
317
+ job .sleep_until_complete ()
318
+ job_status = job .status ()
319
+ assert job_status ["status" ] == "Completed"
320
+ assert job_status ["job_id" ] == job .id
You can’t perform that action at this time.
0 commit comments