update CLI test for enhancer…

- update expected log messages
- force `-ncu 3`, because otherwise
  the example images would not be deemed
  in need of enhancement
This commit is contained in:
Robert Sachunsky 2026-05-09 02:59:52 +02:00
parent c1b6a61301
commit 29abae0144

View file

@ -20,9 +20,11 @@ def test_run_eynollah_enhancement_filename(
[
'-i', str(infile),
'-o', str(outfile.parent),
# force rescaling
'-ncu', 3,
] + options,
[
'Image was enhanced',
'Enhancement applied',
]
)
with Image.open(infile) as original_img:
@ -43,10 +45,11 @@ def test_run_eynollah_enhancement_directory(
[
'-di', str(resources_dir/ '2files'),
'-o', str(outdir),
# force rescaling
'-ncu', 3,
],
[
f'Image {image_resources[0]} was enhanced',
f'Image {image_resources[1]} was enhanced',
'Enhancement applied',
]
)
assert len(list(outdir.iterdir())) == 2