MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_invalid_inputs

Method test_invalid_inputs

tests/transforms/test_resized.py:62–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

60
61class TestResized(NumpyImageTestCase2D):
62 def test_invalid_inputs(self):
63 with self.assertRaises(ValueError):
64 resize = Resized(keys="img", spatial_size=(128, 128, 3), mode="order")
65 resize({"img": self.imt[0]})
66
67 with self.assertRaises(ValueError):
68 resize = Resized(keys="img", spatial_size=(128,), mode="order")
69 resize({"img": self.imt[0]})
70
71 def test_unchange(self):
72 resize = Resized(keys="img", spatial_size=(128, 64), mode="bilinear")

Callers

nothing calls this directly

Calls 2

ResizedClass · 0.90
resizeFunction · 0.85

Tested by

no test coverage detected