Skip to content

Commit ed8faab

Browse files
committed
lint
1 parent 53c9b21 commit ed8faab

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/util/test_folderparser.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ def test_paligemma_format(self):
5858
testImagePath = "/dataset/de48275e1ff70fab78bee31e09fc896d_png.rf.01a97b1ad053aa1e6525ac0451cee8b7.jpg"
5959
testImage = [i for i in parsed["images"] if i["file"] == testImagePath][0]
6060
assert testImage["annotationfile"]["name"] == "annotation.jsonl"
61-
# fmt: off
62-
expected = """{"image": "de48275e1ff70fab78bee31e09fc896d_png.rf.01a97b1ad053aa1e6525ac0451cee8b7.jpg", "prefix": "Which sector had the highest ROI in 2013?", "suffix": "Retail"}
63-
{"image": "de48275e1ff70fab78bee31e09fc896d_png.rf.01a97b1ad053aa1e6525ac0451cee8b7.jpg", "prefix": "Which sector had the highest ROI in 2014?", "suffix": "Electronics"}"""
64-
# fmt: on
61+
expected = (
62+
'{"image": "de48275e1ff70fab78bee31e09fc896d_png.rf.01a97b1ad053aa1e6525ac0451cee8b7.jpg",'
63+
' "prefix": "Which sector had the highest ROI in 2013?", "suffix": "Retail"}\n'
64+
'{"image": "de48275e1ff70fab78bee31e09fc896d_png.rf.01a97b1ad053aa1e6525ac0451cee8b7.jpg",'
65+
' "prefix": "Which sector had the highest ROI in 2014?", "suffix": "Electronics"}'
66+
)
6567
assert testImage["annotationfile"]["rawText"] == expected
6668

6769

0 commit comments

Comments
 (0)