Skip to content

Commit f3b552f

Browse files
fix(pre_commit): 🎨 auto format pre-commit hooks
1 parent fc5758e commit f3b552f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/util/test_folderparser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def test_coco_with_subdir_file_name_should_match_annotations(self):
148148

149149
def test_coco_root_annotation_matches_images_in_subdirs(self):
150150
"""Test that COCO annotation at root can match images in subdirectories.
151-
151+
152152
This tests the fix for the bug where annotation file dirname (/) didn't match
153153
image dirname (/1/100001), causing annotations to not be found.
154154
"""
@@ -190,15 +190,15 @@ def test_coco_root_annotation_matches_images_in_subdirs(self):
190190
json.dump(coco, f)
191191

192192
parsed = folderparser.parsefolder(tmpdir)
193-
193+
194194
# Find the image
195195
img_entries = [i for i in parsed["images"] if image_name in i["file"]]
196196
self.assertEqual(len(img_entries), 1, "Should find exactly one image")
197197
img_entry = img_entries[0]
198-
198+
199199
# Verify annotation was matched
200200
self.assertIsNotNone(img_entry.get("annotationfile"), "Image should have annotation")
201-
201+
202202
# Verify annotation content
203203
ann_data = json.loads(img_entry["annotationfile"]["rawText"])
204204
self.assertEqual(len(ann_data["images"]), 1, "Should have one image reference")

0 commit comments

Comments
 (0)