mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-05-13 01:13:54 +02:00
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:
parent
c1b6a61301
commit
29abae0144
1 changed files with 6 additions and 3 deletions
|
|
@ -20,9 +20,11 @@ def test_run_eynollah_enhancement_filename(
|
||||||
[
|
[
|
||||||
'-i', str(infile),
|
'-i', str(infile),
|
||||||
'-o', str(outfile.parent),
|
'-o', str(outfile.parent),
|
||||||
|
# force rescaling
|
||||||
|
'-ncu', 3,
|
||||||
] + options,
|
] + options,
|
||||||
[
|
[
|
||||||
'Image was enhanced',
|
'Enhancement applied',
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
with Image.open(infile) as original_img:
|
with Image.open(infile) as original_img:
|
||||||
|
|
@ -43,10 +45,11 @@ def test_run_eynollah_enhancement_directory(
|
||||||
[
|
[
|
||||||
'-di', str(resources_dir/ '2files'),
|
'-di', str(resources_dir/ '2files'),
|
||||||
'-o', str(outdir),
|
'-o', str(outdir),
|
||||||
|
# force rescaling
|
||||||
|
'-ncu', 3,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
f'Image {image_resources[0]} was enhanced',
|
'Enhancement applied',
|
||||||
f'Image {image_resources[1]} was enhanced',
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
assert len(list(outdir.iterdir())) == 2
|
assert len(list(outdir.iterdir())) == 2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue