Skip to content

Commit

Permalink
ignore lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylampada committed Sep 16, 2024
1 parent ffe9afd commit 53c9b21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/util/test_folderparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ def test_paligemma_format(self):
testImagePath = "/dataset/de48275e1ff70fab78bee31e09fc896d_png.rf.01a97b1ad053aa1e6525ac0451cee8b7.jpg"
testImage = [i for i in parsed["images"] if i["file"] == testImagePath][0]
assert testImage["annotationfile"]["name"] == "annotation.jsonl"
# fmt: off
expected = """{"image": "de48275e1ff70fab78bee31e09fc896d_png.rf.01a97b1ad053aa1e6525ac0451cee8b7.jpg", "prefix": "Which sector had the highest ROI in 2013?", "suffix": "Retail"}
{"image": "de48275e1ff70fab78bee31e09fc896d_png.rf.01a97b1ad053aa1e6525ac0451cee8b7.jpg", "prefix": "Which sector had the highest ROI in 2014?", "suffix": "Electronics"}"""
# fmt: on
assert testImage["annotationfile"]["rawText"] == expected


Expand Down

0 comments on commit 53c9b21

Please sign in to comment.