Unverified Commit 86bf90b7 authored by Henri Payno's avatar Henri Payno
Browse files

add several missing call to super().setUp() and super().tearDown()

parent c7637b29
......@@ -70,11 +70,13 @@ def url_has_been_copied(file_path: str, url: DataUrl):
class TestH5ToNxConverter(unittest.TestCase):
def setUp(self) -> None:
super().setUp()
self.folder = tempfile.mkdtemp()
self.config = TomoHDF5Config()
def tearDown(self) -> None:
shutil.rmtree(self.folder)
super().tearDown()
def test_simple_converter_with_nx_detector_attr(self):
"""
......@@ -389,12 +391,14 @@ class TestDetectorDetection(unittest.TestCase):
class TestXRDCTConversion(unittest.TestCase):
def setUp(self) -> None:
super().setUp()
self.folder = tempfile.mkdtemp()
self.config = TomoHDF5Config()
self.config.format = Format.XRD_CT
def tearDown(self) -> None:
shutil.rmtree(self.folder)
super().tearDown()
def test_simple_converter_with_nx_detector_attr(self):
"""
......@@ -442,6 +446,7 @@ class TestStandardAcqConversionWithExternalUrls(unittest.TestCase):
"""Test conversion when frames are provided from urls"""
def setUp(self) -> None:
super().setUp()
self.folder = tempfile.mkdtemp()
self.config = TomoHDF5Config()
self.config.output_file = os.path.join(self.folder, "output.nx")
......@@ -468,6 +473,7 @@ class TestStandardAcqConversionWithExternalUrls(unittest.TestCase):
def tearDown(self) -> None:
shutil.rmtree(self.folder)
super().tearDown()
def test_dataset_1(self):
"""test a conversion where projections are contained in the
......@@ -703,6 +709,7 @@ class TestZSeriesConversionWithExternalUrls(unittest.TestCase):
"""
def setUp(self) -> None:
super().setUp()
self.folder = tempfile.mkdtemp()
self.config = TomoHDF5Config()
......@@ -739,6 +746,7 @@ class TestZSeriesConversionWithExternalUrls(unittest.TestCase):
def tearDown(self) -> None:
shutil.rmtree(self.folder)
super().tearDown()
def test_dataset_zseries(self):
"""Test a zseries with only external scan entries"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment