Skip to content

Commit 5c725ff

Browse files
committed
Failing tests for ENG-549 and ENG-495
1 parent 2a1ff0e commit 5c725ff

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/test_exporters.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def test_empty_skipped(self, tmpfile, datadir):
4141
labeled_data = datadir.join('empty_skipped.json')
4242
lb2co.from_json(labeled_data=labeled_data, coco_output=tmpfile)
4343

44+
def test_non_polygons(self, tmpfile, datadir):
45+
labeled_data = datadir.join('non_polygon.json')
46+
lb2co.from_json(labeled_data=labeled_data, coco_output=tmpfile, label_format='XY')
47+
4448

4549
class TestVocExporter(object):
4650
def test_wkt_1(self, tmpdir, datadir):
@@ -85,3 +89,7 @@ def test_bad_label_format(self, tmpdir, datadir):
8589
labeled_data = datadir.join('labelbox_xy_1.json')
8690
with pytest.raises(lb2pa.UnknownFormatError):
8791
lb2pa.from_json(labeled_data, tmpdir, tmpdir, label_format='INVALID')
92+
93+
def test_non_polygons(self, tmpdir, datadir):
94+
labeled_data = datadir.join('non_polygon.json')
95+
lb2pa.from_json(labeled_data, tmpdir, tmpdir, label_format='XY')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"ID":"cjlmqp9dnw28w0771zeasfqie","Labeled Data":"https://storage.googleapis.com/labelbox-example-datasets/tesla/2018-Tesla-Model-3-front-three-quarter-in-motion.jpg","Label":{"box":[{"geometry":{"x":1259,"y":1411}}],"select_the_cup_models":["model_3"]},"Created By":"feynman@labelbox.com","Project Name":"seg tesla v3","Created At":"2018-09-03T20:30:51.000Z","Seconds to Label":3.111,"External ID":null,"Agreement":null,"Dataset Name":"Example Tesla Dataset","Reviews":[],"View Label":"https://image-segmentation-v3.labelbox.com?project=cjl8ss8h83bep0715vux0nugp&label=cjlmqp9dnw28w0771zeasfqie"}]

0 commit comments

Comments
 (0)