File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
tests/unit/adapters/kili_api_gateway/label Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments