more unit tests

This commit is contained in:
klemek
2020-05-01 13:25:44 +02:00
parent 6748073048
commit 62afce22a6
3 changed files with 35 additions and 23 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ def compute_part(*args: str, input_data: Optional[bytes] = None,
if len(args) <= 1:
return None, 'Image: received no input data nor URL'
else:
input_data, err = utils.read_web(args[1], max_file_size=max_file_size)
input_data, err = utils.read_web_file(args[1], max_file_size=max_file_size)
if input_data is None:
return None, 'Image: ' + err
img = img_factory.build_image_only(input_data)