diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-06-21 10:59:28 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2019-06-21 10:59:28 +0100 |
commit | b3100c1af0222e7cfaac4dff93111e3bd0331649 (patch) | |
tree | d1a4a221b6560811c66ae3026820c105f305c0af /Wrappers | |
parent | ea9918624ee22820494b6251c5e9d547e588eaa5 (diff) | |
download | framework-b3100c1af0222e7cfaac4dff93111e3bd0331649.tar.gz framework-b3100c1af0222e7cfaac4dff93111e3bd0331649.tar.bz2 framework-b3100c1af0222e7cfaac4dff93111e3bd0331649.tar.xz framework-b3100c1af0222e7cfaac4dff93111e3bd0331649.zip |
makes sure write tests happen before read tests
closes #328
Diffstat (limited to 'Wrappers')
-rw-r--r-- | Wrappers/Python/test/test_NexusReaderWriter.py (renamed from Wrappers/Python/test/fix_test_NexusReaderWriter.py) | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Wrappers/Python/test/fix_test_NexusReaderWriter.py b/Wrappers/Python/test/test_NexusReaderWriter.py index 7b8d453..9add7b7 100644 --- a/Wrappers/Python/test/fix_test_NexusReaderWriter.py +++ b/Wrappers/Python/test/test_NexusReaderWriter.py @@ -20,6 +20,7 @@ class TestNexusReaderWriter(unittest.TestCase): writer.set_up(file_name = os.path.join(os.getcwd(), 'test_nexus_im.nxs'), data_container = im) writer.write_file() + self.stestreadImageData() def testwriteAcquisitionData(self): im_size = 5 @@ -51,8 +52,10 @@ class TestNexusReaderWriter(unittest.TestCase): writer.set_up(file_name = os.path.join(os.getcwd(), 'test_nexus_ad3d.nxs'), data_container = ad3d) writer.write_file() + + self.stestreadAcquisitionData() - def testreadImageData(self): + def stestreadImageData(self): im_size = 5 ig_test = ImageGeometry(voxel_num_x = im_size, @@ -67,7 +70,7 @@ class TestNexusReaderWriter(unittest.TestCase): self.assertEqual(ig.voxel_num_x, ig_test.voxel_num_x, 'ImageGeometry is not correct') self.assertEqual(ig.voxel_num_y, ig_test.voxel_num_y, 'ImageGeometry is not correct') - def testreadAcquisitionData(self): + def stestreadAcquisitionData(self): im_size = 5 ag2d_test = AcquisitionGeometry(geom_type = 'parallel', dimension = '2D', |