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

Method test_invalid_inputs

tests/transforms/test_zoomd.py:85–90  ·  view source on GitHub ↗
(self, _, zoom, mode, raises)

Source from the content-addressed store, hash-verified

83
84 @parameterized.expand(INVALID_CASES)
85 def test_invalid_inputs(self, _, zoom, mode, raises):
86 key = "img"
87 for p in TEST_NDARRAYS_ALL:
88 with self.assertRaises(raises):
89 zoom_fn = Zoomd(key, zoom=zoom, mode=mode)
90 zoom_fn({key: p(self.imt[0])})
91
92
93if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

ZoomdClass · 0.90

Tested by

no test coverage detected