Skip to content

Commit 43a01fe

Browse files
committed
Try to force test order sorting
Try to force model building to be built first
1 parent fd6523a commit 43a01fe

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

TDD/test_gaussianModelBuild.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
import subprocess
2222
import os
2323

24-
# Do not allow test order sorting
25-
unittest.TestLoader.sortTestMethodsUsing = None
26-
2724
# Change to modeling directory
2825
currentDir = os.getcwd()
2926
path = os.path.join(currentDir,os.pardir)
@@ -35,7 +32,7 @@ class TestScons(unittest.TestCase):
3532
Unit tests of the gaussian model building
3633
'''
3734

38-
def test_gaussianReflectorModeling(self):
35+
def test_a_gaussianReflectorModeling(self):
3936
'''
4037
Test the building of the gaussian reflector in
4138
a linear velocity model
@@ -44,7 +41,7 @@ def test_gaussianReflectorModeling(self):
4441
self.assertEqual(result,0,'FAILED: gaussian reflector modeling failed!')
4542

4643

47-
def test_gaussianReflectorPefInterpolation(self):
44+
def test_b_gaussianReflectorPefInterpolation(self):
4845
'''
4946
Test of the PEF interpolation step of the seismic data cube
5047
modeled with the gaussian reflector linear velocity model.

TDD/test_multiLayerModelBuild.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
import subprocess
2222
import os
2323

24-
# Do not allow test order sorting
25-
unittest.TestLoader.sortTestMethodsUsing = None
26-
2724
# Change to modeling directory
2825
currentDir = os.getcwd()
2926
path = os.path.join(currentDir,os.pardir)
@@ -35,14 +32,14 @@ class TestScons(unittest.TestCase):
3532
Unit tests of the multi layer model building
3633
'''
3734

38-
def test_multiLayerModeling(self):
35+
def test_a_multiLayerModeling(self):
3936
'''
4037
Test of the building of the multi layer model
4138
'''
4239
result = subprocess.call('cd modelingAndPEFInterpolation/multiLayerModel && scons multiLayerDataCube.rsf',shell=True)
4340
self.assertEqual(result,0,'FAILED: multi Layer modeling failed!')
4441

45-
def test_multiLayerPefInterpolation(self):
42+
def test_b_multiLayerPefInterpolation(self):
4643
'''
4744
Test of the PEF interpolation step of the seimic data cube
4845
modeled with the multi layer model

0 commit comments

Comments
 (0)