Skip to content

Commit 5ef5a03

Browse files
author
Diego Ardila
committed
in progress
1 parent 5fffaef commit 5ef5a03

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/test_dataset.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def test_dataset_export_autotag_scores(CLIENT):
249249

250250

251251
def test_annotate_async(dataset: Dataset):
252+
dataset.append(make_dataset_items())
252253
semseg = SegmentationAnnotation.from_json(TEST_SEGMENTATION_ANNOTATIONS[0])
253254
polygon = PolygonAnnotation(**TEST_POLYGON_ANNOTATIONS[0])
254255
bbox = BoxAnnotation(**TEST_BOX_ANNOTATIONS[0])
@@ -259,6 +260,28 @@ def test_annotate_async(dataset: Dataset):
259260
asynchronous=True,
260261
)
261262
job.sleep_until_complete()
263+
{
264+
"job_id": "job_c2r16b9vcz50048tk5k0",
265+
"status": "Completed",
266+
"message": {
267+
"annotation_upload": {
268+
"epoch": 1,
269+
"total": 2,
270+
"errored": 0,
271+
"ignored": 0,
272+
"datasetId": "ds_c2r16asgc3s009hs5jzg",
273+
"processed": 0,
274+
},
275+
"segmentation_upload": {
276+
"errors": [
277+
"Item not found for reference ID airplane.png in dataset ds_c2r16asgc3s009hs5jzg!"
278+
],
279+
"ignored": 0,
280+
"n_errors": 1,
281+
"processed": 0,
282+
},
283+
},
284+
}
262285

263286
assert job.status() == {
264287
"job_id": job.id,

0 commit comments

Comments
 (0)