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

Method setUpClass

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

Source from the content-addressed store, hash-verified

471class TestLoadImageMeta(unittest.TestCase):
472 @classmethod
473 def setUpClass(cls):
474 super().setUpClass()
475 cls.tmpdir = tempfile.mkdtemp()
476 test_image = nib.Nifti1Image(np.random.rand(128, 128, 128), np.eye(4))
477 nib.save(test_image, os.path.join(cls.tmpdir, "im.nii.gz"))
478 cls.test_data = os.path.join(cls.tmpdir, "im.nii.gz")
479
480 @classmethod
481 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 2

saveMethod · 0.80
setUpClassMethod · 0.45

Tested by

no test coverage detected