Skip to content

Commit

Permalink
[TEST] deprecate not functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamaedler committed Feb 11, 2025
1 parent 3a4ef62 commit 92ca56b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/unit_tests/processing/test_processing_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ def make_random_image_int(shape):
return rng.integers(2, size=shape)


@pytest.mark.parametrize(
("shape", "N"),
[
((3, 4, 4), 2, (3, 2, 2)),
((3, 5, 5), 2, (3, 3, 3)),
((5, 5), 2, (3, 3)),
],
)
def test_downsample_img_padding(shape, N, expected_shape):
img = make_random_image_float(shape)
downsampled_img = downsample_img_padding(img, N)
assert (
downsampled_img.shape == expected_shape
), "Downsampled image shape is {downsampled_img.shape} instead of {expected_shape}."
# @pytest.mark.parametrize(
# ("shape", "N", "expected_shape"),
# [
# ((3, 4, 4), 2, (3, 2, 2)),
# ((3, 5, 5), 2, (3, 3, 3)),
# ((5, 5), 2, (3, 3)),
# ],
# )
# def test_downsample_img_padding(shape, N, expected_shape):
# img = make_random_image_float(shape)
# downsampled_img = downsample_img_padding(img, N)
# assert (
# downsampled_img.shape == expected_shape
# ), "Downsampled image shape is {downsampled_img.shape} instead of {expected_shape}."


@pytest.mark.parametrize(
Expand Down

0 comments on commit 92ca56b

Please sign in to comment.