Skip to content

Commit

Permalink
fixed exporter test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofferEdlund committed Oct 23, 2023
1 parent 8b94f85 commit f661f0f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tests/darwin/exporter/formats/export_darwin_1_0_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,9 @@ def test_complete_annotation_file(self):
{"x": 531.6440000000002, "y": 428.4196},
{"x": 529.8140000000002, "y": 426.5896},
]
bounding_box = {"x": 557.66,
"y": 428.98,
"w": 160.76,
"h": 315.3
}
annotation_class = dt.AnnotationClass(name="test", annotation_type="polygon")
annotation = dt.Annotation(annotation_class=annotation_class, data={"path": polygon_path, "bounding_box":bounding_box}, subs=[])


annotation_class = dt.AnnotationClass(name="test", annotation_type="polygon")
annotation = dt.Annotation(annotation_class=annotation_class, data={"path": polygon_path}, subs=[])

annotation_file = dt.AnnotationFile(
path=Path("test.json"),
Expand Down Expand Up @@ -272,4 +266,4 @@ def test_tags(self):
},
"annotations": [{"tag": {}, "name": "tag_test", "slot_names": []}],
"dataset": "None",
}
}

0 comments on commit f661f0f

Please sign in to comment.