diff --git a/tests/transforms/augmentation/test_random_motion.py b/tests/transforms/augmentation/test_random_motion.py index 69678434..ec2f9676 100644 --- a/tests/transforms/augmentation/test_random_motion.py +++ b/tests/transforms/augmentation/test_random_motion.py @@ -58,3 +58,15 @@ def test_wrong_image_interpolation_type(self): def test_wrong_image_interpolation_value(self): with pytest.raises(ValueError): RandomMotion(image_interpolation='wrong') + + def test_out_of_range_axis(self): + with pytest.raises(ValueError): + RandomMotion(axes=3) + + def test_out_of_range_axis_in_tuple(self): + with pytest.raises(ValueError): + RandomMotion(axes=(0, -1, 2)) + + def test_wrong_axes_type(self): + with pytest.raises(ValueError): + RandomMotion(axes=None)