Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill.sizov committed Oct 29, 2021
1 parent 4f5053a commit 2c6d67a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cvat/apps/dataset_manager/tests/test_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def test_import_formats_query(self):
'ICDAR Segmentation 1.0',
'Kitti Raw Format 1.0',
'Sly Point Cloud Format 1.0',
'Cityscapes 1.0'
'Cityscapes 1.0',
'Datumaro 1.0',
'Datumaro 3D 1.0'
})
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/dataset_manager/tests/test_rest_api_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ def test_api_v1_tasks_annotations_dump_and_upload_with_datumaro(self):
"ICDAR Segmentation 1.0", # changed points values
'Kitti Raw Format 1.0',
'Sly Point Cloud Format 1.0',
'Cityscapes 1.0' # changed points value
'Cityscapes 1.0', # changed points value
'Datumaro 3D 1.0'
]:
self.skipTest("Format is fail")
Expand Down
4 changes: 4 additions & 0 deletions cvat/apps/engine/tests/test_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4811,6 +4811,10 @@ def _get_initial_annotation(annotation_format):
annotations["shapes"] = points_wo_attrs \
+ rectangle_shapes_wo_attrs

elif annotation_format == "Cityscapes 1.0":
annotations["shapes"] = points_wo_attrs \
+ rectangle_shapes_wo_attrs

elif annotation_format == "Market-1501 1.0":
tags_with_attrs = [{
"frame": 1,
Expand Down

0 comments on commit 2c6d67a

Please sign in to comment.