Skip to content

Commit 4cac910

Browse files
committed
update to test to notify us in the future we need to look into correcting nested checklists' brackets
1 parent 4a89ead commit 4cac910

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/data/serialization/labelbox_v1/test_image.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
'tests/data/assets/labelbox_v1/highly_nested_image.json',
1010
'tests/data/assets/labelbox_v1/image_export.json'
1111
])
12+
#TODO: some checklists from the export come in as [checklist ans: []]
13+
# while others are checklist ans: []... when we can figure out why we sometimes
14+
# have extra brackets, we can look into testing nested checklist answers
15+
# and ensuring the export's output matches deserialized/serialized output
1216
def test_image(file_path):
1317
with open(file_path, 'r') as file:
1418
payload = json.load(file)
@@ -32,7 +36,6 @@ def test_image(file_path):
3236
if isinstance(annotation_b['classifications'][0], list):
3337
annotation_b['classifications'] = annotation_b[
3438
'classifications'][0]
35-
3639
assert annotation_a == annotation_b
3740

3841

0 commit comments

Comments
 (0)