Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
nxtomomill
Commits
86bf90b7
Unverified
Commit
86bf90b7
authored
Nov 30, 2021
by
Henri Payno
Browse files
add several missing call to super().setUp() and super().tearDown()
parent
c7637b29
Changes
1
Hide whitespace changes
Inline
Side-by-side
nxtomomill/converter/hdf5/test/test_hdf5converter.py
View file @
86bf90b7
...
...
@@ -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"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment