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

[tests/test_mc] Simplify Montgomery loading tests

parent 28404373
No related branches found
No related tags found
No related merge requests found
Pipeline #70569 passed
...@@ -104,10 +104,6 @@ def test_protocol_consistency(): ...@@ -104,10 +104,6 @@ def test_protocol_consistency():
def test_loading(): def test_loading():
from ptbench.data.montgomery import dataset from ptbench.data.montgomery import dataset
image_size_portrait = (4020, 4892)
image_size_landscape = (4892, 4020)
image_size_test = (512, 512)
def _check_sample(s): def _check_sample(s):
data = s.data data = s.data
assert isinstance(data, dict) assert isinstance(data, dict)
...@@ -115,9 +111,9 @@ def test_loading(): ...@@ -115,9 +111,9 @@ def test_loading():
assert "data" in data assert "data" in data
assert data["data"].size in ( assert data["data"].size in (
image_size_portrait, (4020, 4892), # portrait
image_size_landscape, (4892, 4020), # landscape
image_size_test, (512, 512), # test database @ CI
) )
assert data["data"].mode == "L" # Check colors assert data["data"].mode == "L" # Check colors
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment