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

Method test_errors

tests/utils/enums/test_wsireader.py:732–736  ·  view source on GitHub ↗
(self, file_path, reader_kwargs, patch_info, exception)

Source from the content-addressed store, hash-verified

730 [TEST_CASE_ERROR_0_MPP, TEST_CASE_ERROR_1_MPP, TEST_CASE_ERROR_2_POWER, TEST_CASE_ERROR_3_POWER]
731 )
732 def test_errors(self, file_path, reader_kwargs, patch_info, exception):
733 with self.assertRaises(exception):
734 reader = WSIReader(self.backend, **reader_kwargs)
735 with reader.read(file_path) as img_obj:
736 reader.get_data(img_obj, **patch_info)
737
738
739@skipUnless(has_cucim, "Requires cucim")

Callers

nothing calls this directly

Calls 3

readMethod · 0.95
WSIReaderClass · 0.90
get_dataMethod · 0.45

Tested by

no test coverage detected