(cls)
| 188 | class 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): |
no test coverage detected