Skip to content

Commit 20fb430

Browse files
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 <bhardwajvaibhav2097@gmail.com>
1 parent 87ff41a commit 20fb430

4 files changed

Lines changed: 1 addition & 5 deletions

File tree

tests/transforms/test_border_pad.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
[{"spatial_border": 2}, (3, 8, 8, 4), (3, 12, 12, 8)],
2424
[{"spatial_border": [1, 2, 3]}, (3, 8, 8, 4), (3, 10, 12, 10)],
2525
[{"spatial_border": [1, 2, 3, 4, 5, 6]}, (3, 8, 8, 4), (3, 11, 15, 15)],
26-
[{"spatial_border": [1, 2, 3, 4, 5, 6]}, (3, 8, 8, 4), (3, 11, 15, 15)],
2726
]
2827

2928

tests/transforms/test_border_padd.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
[{"keys": "img", "spatial_border": 2}, (3, 8, 8, 4), (3, 12, 12, 8)],
2424
[{"keys": "img", "spatial_border": [1, 2, 3]}, (3, 8, 8, 4), (3, 10, 12, 10)],
2525
[{"keys": "img", "spatial_border": [1, 2, 3, 4, 5, 6]}, (3, 8, 8, 4), (3, 11, 15, 15)],
26-
[{"keys": "img", "spatial_border": 2}, (3, 8, 8, 4), (3, 12, 12, 8)],
27-
[{"keys": "img", "spatial_border": 2}, (3, 8, 8, 4), (3, 12, 12, 8)],
26+
[{"keys": "img", "spatial_border": 2}, (3, 8, 8, 4), (3, 12, 12, 8)]
2827
]
2928

3029

tests/transforms/test_center_spatial_crop.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
TEST_SHAPES = [
2323
[{"roi_size": [2, 2, -1]}, (3, 3, 3, 3), (3, 2, 2, 3), True],
2424
[{"roi_size": [2, 2, 2]}, (3, 3, 3, 3), (3, 2, 2, 2), True],
25-
[{"roi_size": [2, 2, 2]}, (3, 3, 3, 3), (3, 2, 2, 2), True],
2625
[{"roi_size": [2, 1, 2]}, (3, 3, 3, 3), (3, 2, 1, 2), False],
2726
[{"roi_size": [2, 1, 3]}, (3, 3, 1, 3), (3, 2, 1, 3), True],
2827
]

tests/transforms/test_spatial_padd.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
TESTS = [
2222
[{"keys": ["img"], "spatial_size": [15, 8, 8], "method": "symmetric"}, (3, 8, 8, 5), (3, 15, 8, 8)],
2323
[{"keys": ["img"], "spatial_size": [15, 8, 8], "method": "end"}, (3, 8, 8, 5), (3, 15, 8, 8)],
24-
[{"keys": ["img"], "spatial_size": [15, 8, 8], "method": "end"}, (3, 8, 8, 5), (3, 15, 8, 8)],
2524
[{"keys": ["img"], "spatial_size": [15, 8, -1], "method": "end"}, (3, 8, 5, 4), (3, 15, 8, 4)],
2625
]
2726

0 commit comments

Comments
 (0)