Skip to content
Snippets Groups Projects
Commit 28404373 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[tests/test_mc] Fix Montgomery tests in the CI

parent 8a2a7d7c
Branches
Tags
No related merge requests found
Pipeline #70568 passed
......@@ -106,13 +106,7 @@ def test_loading():
image_size_portrait = (4020, 4892)
image_size_landscape = (4892, 4020)
def _check_size(size):
if size == image_size_portrait:
return True
elif size == image_size_landscape:
return True
return False
image_size_test = (512, 512)
def _check_sample(s):
data = s.data
......@@ -120,7 +114,11 @@ def test_loading():
assert len(data) == 2
assert "data" in data
assert _check_size(data["data"].size) # Check size
assert data["data"].size in (
image_size_portrait,
image_size_landscape,
image_size_test,
)
assert data["data"].mode == "L" # Check colors
assert "label" in data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment