Skip to content
Snippets Groups Projects
Commit 219587f8 authored by Ralf Mueller's avatar Ralf Mueller
Browse files

Fix test for setCDO

parent 84b96554
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,8 @@ class Cdo(object):
self.setReturnArray(False)
def setCDO(self,value):
self.CDO = value
self.CDO = value
self.operators = self.getOperators()
#==================================================================
# Addional operators:
......
......@@ -8,7 +8,7 @@ class CdoTest(unittest.TestCase):
def testCDO(self):
print(cdo.CDO)
self.assertEqual('cdo',cdo.CDO)
newCDO="/usr/local/bin/cdo"
newCDO="/usr/bin/cdo"
cdo.setCDO(newCDO)
self.assertEqual(newCDO,cdo.CDO)
cdo.setCDO('cdo')
......@@ -25,9 +25,6 @@ class CdoTest(unittest.TestCase):
self.assertIn("mask",cdo.operators)
self.assertIn("studentt",cdo.operators)
def testCall(self):
print cdo.sinfov(input='/home/ram/data/icon/oce.nc')
def test_getOperators(self):
for op in ['random','stdatm','info','showlevel','sinfo','remap','geopotheight','mask','topo','thicknessOfLevels']:
if 'thicknessOfLevels' != op:
......@@ -118,6 +115,9 @@ class CdoTest(unittest.TestCase):
self.assertEqual(targetThicknesses, cdo.thicknessOfLevels(input = "-selname,T -stdatm,"+ ','.join(levels)))
if 'thingol' == os.popen('hostname').read().strip():
def testCall(self):
print cdo.sinfov(input='/home/ram/data/icon/oce.nc')
def test_verticalLevels(self):
iconpath = "/home/ram/src/git/icon/grids"
# check, if a given input files has vertival layers of a given thickness array
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment