Skip to content

Commit 9cca2da

Browse files
committed
fix(LAB-3755): update test with the asset for patch_label_json_response
1 parent a27d13a commit 9cca2da

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/unit/adapters/kili_api_gateway/label/test_label_utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,18 @@ def test_video_object_detection_annotation_to_json_response(
352352
json_interface, latest_label_annotations, expected_latest_label_result
353353
):
354354
"""Test the conversion from annotations to jsonResponse."""
355+
asset = {
356+
"id": "fake_asset_id",
357+
"resolution": {"width": 1920, "height": 1080},
358+
"content": "video1.mp4",
359+
"jsonContent": "",
360+
}
355361
converter = AnnotationsToJsonResponseConverter(
356362
json_interface=json_interface,
357363
project_input_type="VIDEO",
358364
)
359365
converter.patch_label_json_response(
360-
latest_label_annotations, latest_label_annotations["annotations"]
366+
asset, latest_label_annotations, latest_label_annotations["annotations"]
361367
)
362368
del latest_label_annotations["annotations"]
363369
assert expected_latest_label_result == latest_label_annotations

0 commit comments

Comments
 (0)