Tests: Add tests for image format saving and loading #104442

Closed
Jesse Yurkovich wants to merge 6 commits from deadpin:image-tests into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 5 additions and 1 deletions
Showing only changes of commit 1318c60c75 - Show all commits

View File

@ -75,7 +75,11 @@ class ImBufTest(AbstractImBufTest):
return self.call_idiff(ref_exr_path, out_exr_path)
def check(self, file_pattern):
for image_path in self._get_image_files(file_pattern):
image_files = self._get_image_files(file_pattern)
if len(image_files) == 0:
self.fail(f"No images found for pattern {file_pattern}")
for image_path in image_files:
print_message(image_path.name, 'SUCCESS', 'RUN')
# Load the image under test