From bb90398c6557cdc097cb23da8321a4963d02cabc Mon Sep 17 00:00:00 2001 From: bhardwajjvaibhav Date: Thu, 25 Jun 2026 14:11:34 +0530 Subject: [PATCH] tests: remove duplicate test cases in transforms Fixes #8942 Removed byte-identical duplicate entries from test case lists in transforms. Files changed: - tests/transforms/test_border_pad.py - tests/transforms/test_border_padd.py - tests/transforms/test_center_spatial_crop.py - tests/transforms/test_spatial_padd.py Signed-off-by: bhardwajjvaibhav Signed-off-by: bhardwajjvaibhav --- tests/transforms/test_border_pad.py | 1 - tests/transforms/test_border_padd.py | 1 - tests/transforms/test_center_spatial_crop.py | 1 - tests/transforms/test_spatial_padd.py | 1 - 4 files changed, 4 deletions(-) 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)], ] diff --git a/tests/transforms/test_border_padd.py b/tests/transforms/test_border_padd.py index c7eb3da762..15f941bea4 100644 --- a/tests/transforms/test_border_padd.py +++ b/tests/transforms/test_border_padd.py @@ -24,7 +24,6 @@ [{"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)], ] 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], ] 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)], ]