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

Method setUpClass

tests/transforms/test_load_image.py:190–201  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

188class TestLoadImage(unittest.TestCase):
189 @classmethod
190 def setUpClass(cls):
191 super().setUpClass()
192 with skip_if_downloading_fails():
193 cls.tmpdir = tempfile.mkdtemp()
194 key = "DICOM_single"
195 url = testing_data_config("images", key, "url")
196 hash_type = testing_data_config("images", key, "hash_type")
197 hash_val = testing_data_config("images", key, "hash_val")
198 download_and_extract(
199 url=url, output_dir=cls.tmpdir, hash_val=hash_val, hash_type=hash_type, file_type="zip"
200 )
201 cls.data_dir = os.path.join(cls.tmpdir, "CT_DICOM_SINGLE")
202
203 @classmethod
204 def tearDownClass(cls):

Callers 1

setUpClassMethod · 0.45

Calls 3

testing_data_configFunction · 0.90
download_and_extractFunction · 0.90

Tested by

no test coverage detected