Skip to content

Commit dbe8364

Browse files
committed
verify matching annotation_id
1 parent d5c5427 commit dbe8364

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/helpers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@ def reference_id_from_url(url):
9494
for i in range(len(TEST_IMG_URLS))
9595
]
9696

97-
TEST_MASK_URL = "https://scale-temp.s3.amazonaws.com/scale-select/nucleus/mscoco_semseg_masks_uint8/000000000285.png"
97+
TEST_MASK_URL = "https://scale-ml.s3.amazonaws.com/tmp/nucleus/mscoco_semseg_masks/000000000285.png"
9898
TEST_SEGMENTATION_ANNOTATIONS = [
9999
{
100100
"reference_id": reference_id_from_url(TEST_IMG_URLS[i]),
101+
"annotation_id": f"[Pytest] Polygon Annotation Annotation Id{i}",
101102
"mask_url": get_signed_url(TEST_MASK_URL),
102103
"annotations": [
103104
{"label": "bear", "index": 2},
@@ -151,6 +152,9 @@ def assert_segmentation_annotation_matches_dict(
151152
annotation_instance, annotation_dict
152153
):
153154
assert annotation_instance.mask_url == annotation_dict["mask_url"]
155+
assert (
156+
annotation_instance.annotation_id == annotation_dict["annotation_id"]
157+
)
154158
# Cannot guarantee segments are in same order
155159
assert len(annotation_instance.annotations) == len(
156160
annotation_dict["annotations"]

0 commit comments

Comments
 (0)