From 12cfa0a9d6467a214c7930fc75edd14289c4884c Mon Sep 17 00:00:00 2001 From: Soumya Snigdha Kundu Date: Tue, 23 Jun 2026 00:15:20 +0100 Subject: [PATCH 1/6] tests: remove duplicate BorderPad case The TESTS list had the 6-element spatial_border case repeated verbatim; the two entries asserted the same padding result, so removing one changes nothing covered. Signed-off-by: Soumya Snigdha Kundu --- tests/transforms/test_border_pad.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/transforms/test_border_pad.py b/tests/transforms/test_border_pad.py index d0ea112d3a..adb01629f5 100644 --- a/tests/transforms/test_border_pad.py +++ b/tests/transforms/test_border_pad.py @@ -23,7 +23,6 @@ [{"spatial_border": 2}, (3, 8, 8, 4), (3, 12, 12, 8)], [{"spatial_border": [1, 2, 3]}, (3, 8, 8, 4), (3, 10, 12, 10)], [{"spatial_border": [1, 2, 3, 4, 5, 6]}, (3, 8, 8, 4), (3, 11, 15, 15)], - [{"spatial_border": [1, 2, 3, 4, 5, 6]}, (3, 8, 8, 4), (3, 11, 15, 15)], ] From 36537cc5adb956a80a524e65d6e5e3eee3243c8c Mon Sep 17 00:00:00 2001 From: Soumya Snigdha Kundu Date: Tue, 23 Jun 2026 00:15:45 +0100 Subject: [PATCH 2/6] tests: remove duplicate BorderPadd cases The spatial_border=2 case appeared three times in the TESTS list; the two trailing copies were byte-identical to the first and asserted the same result, so they are dropped. Signed-off-by: Soumya Snigdha Kundu --- tests/transforms/test_border_padd.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/transforms/test_border_padd.py b/tests/transforms/test_border_padd.py index c7eb3da762..0b3ef058ab 100644 --- a/tests/transforms/test_border_padd.py +++ b/tests/transforms/test_border_padd.py @@ -23,8 +23,6 @@ [{"keys": "img", "spatial_border": 2}, (3, 8, 8, 4), (3, 12, 12, 8)], [{"keys": "img", "spatial_border": [1, 2, 3]}, (3, 8, 8, 4), (3, 10, 12, 10)], [{"keys": "img", "spatial_border": [1, 2, 3, 4, 5, 6]}, (3, 8, 8, 4), (3, 11, 15, 15)], - [{"keys": "img", "spatial_border": 2}, (3, 8, 8, 4), (3, 12, 12, 8)], - [{"keys": "img", "spatial_border": 2}, (3, 8, 8, 4), (3, 12, 12, 8)], ] From 830a646af012213b267ece982a0c96fbaeb789b7 Mon Sep 17 00:00:00 2001 From: Soumya Snigdha Kundu Date: Tue, 23 Jun 2026 00:15:59 +0100 Subject: [PATCH 3/6] tests: remove duplicate SpatialPadd case The method="end" case was listed twice with identical params and expected shape; one copy is removed. Signed-off-by: Soumya Snigdha Kundu --- tests/transforms/test_spatial_padd.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/transforms/test_spatial_padd.py b/tests/transforms/test_spatial_padd.py index 10bf958738..1b05f2e3af 100644 --- a/tests/transforms/test_spatial_padd.py +++ b/tests/transforms/test_spatial_padd.py @@ -21,7 +21,6 @@ TESTS = [ [{"keys": ["img"], "spatial_size": [15, 8, 8], "method": "symmetric"}, (3, 8, 8, 5), (3, 15, 8, 8)], [{"keys": ["img"], "spatial_size": [15, 8, 8], "method": "end"}, (3, 8, 8, 5), (3, 15, 8, 8)], - [{"keys": ["img"], "spatial_size": [15, 8, 8], "method": "end"}, (3, 8, 8, 5), (3, 15, 8, 8)], [{"keys": ["img"], "spatial_size": [15, 8, -1], "method": "end"}, (3, 8, 5, 4), (3, 15, 8, 4)], ] From 69af97520fe12107f763c25368c0ca5a6a6d2e4f Mon Sep 17 00:00:00 2001 From: Soumya Snigdha Kundu Date: Tue, 23 Jun 2026 00:16:20 +0100 Subject: [PATCH 4/6] tests: remove duplicate CenterSpatialCrop case The roi_size=[2, 2, 2] case appeared twice identically in TEST_SHAPES; one copy is removed. Signed-off-by: Soumya Snigdha Kundu --- tests/transforms/test_center_spatial_crop.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/transforms/test_center_spatial_crop.py b/tests/transforms/test_center_spatial_crop.py index c0da043ecb..9120f30163 100644 --- a/tests/transforms/test_center_spatial_crop.py +++ b/tests/transforms/test_center_spatial_crop.py @@ -22,7 +22,6 @@ TEST_SHAPES = [ [{"roi_size": [2, 2, -1]}, (3, 3, 3, 3), (3, 2, 2, 3), True], [{"roi_size": [2, 2, 2]}, (3, 3, 3, 3), (3, 2, 2, 2), True], - [{"roi_size": [2, 2, 2]}, (3, 3, 3, 3), (3, 2, 2, 2), True], [{"roi_size": [2, 1, 2]}, (3, 3, 3, 3), (3, 2, 1, 2), False], [{"roi_size": [2, 1, 3]}, (3, 3, 1, 3), (3, 2, 1, 3), True], ] From 12d884c6e4fc520530ce40d8d1f7e759fec8139e Mon Sep 17 00:00:00 2001 From: Soumya Snigdha Kundu Date: Tue, 23 Jun 2026 00:16:40 +0100 Subject: [PATCH 5/6] tests: remove duplicate AutoencoderKL attention case The third entry of CASES_ATTENTION was byte-identical to the first (same num_res_blocks=1 config and expected shapes), so it is removed. Signed-off-by: Soumya Snigdha Kundu --- tests/networks/nets/test_autoencoderkl.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/networks/nets/test_autoencoderkl.py b/tests/networks/nets/test_autoencoderkl.py index af0c55d6ec..33972c7ece 100644 --- a/tests/networks/nets/test_autoencoderkl.py +++ b/tests/networks/nets/test_autoencoderkl.py @@ -99,21 +99,6 @@ (1, 1, 16, 16), (1, 4, 4, 4), ], - [ - { - "spatial_dims": 2, - "in_channels": 1, - "out_channels": 1, - "channels": (4, 4, 4), - "latent_channels": 4, - "attention_levels": (False, False, False), - "num_res_blocks": 1, - "norm_num_groups": 4, - }, - (1, 1, 16, 16), - (1, 1, 16, 16), - (1, 4, 4, 4), - ], [ { "spatial_dims": 2, From 22df7f0ac8b89db09cec5adbc884d0cb3b4b38d1 Mon Sep 17 00:00:00 2001 From: Soumya Snigdha Kundu Date: Tue, 23 Jun 2026 00:16:54 +0100 Subject: [PATCH 6/6] tests: remove duplicate SPADE AutoencoderKL attention case The third entry of CASES_ATTENTION was byte-identical to the first, so it is removed. Signed-off-by: Soumya Snigdha Kundu --- tests/networks/nets/test_spade_autoencoderkl.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tests/networks/nets/test_spade_autoencoderkl.py b/tests/networks/nets/test_spade_autoencoderkl.py index 9353ceedc2..c9a17be55f 100644 --- a/tests/networks/nets/test_spade_autoencoderkl.py +++ b/tests/networks/nets/test_spade_autoencoderkl.py @@ -99,23 +99,6 @@ (1, 1, 16, 16), (1, 4, 4, 4), ], - [ - { - "spatial_dims": 2, - "label_nc": 3, - "in_channels": 1, - "out_channels": 1, - "channels": (4, 4, 4), - "latent_channels": 4, - "attention_levels": (False, False, False), - "num_res_blocks": 1, - "norm_num_groups": 4, - }, - (1, 1, 16, 16), - (1, 3, 16, 16), - (1, 1, 16, 16), - (1, 4, 4, 4), - ], [ { "spatial_dims": 2,