mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 22:57:56 -05:00
we don't force lowercase on datatype names anymore
This commit is contained in:
parent
912c713f17
commit
88cab9b135
2 changed files with 7 additions and 5 deletions
|
@ -74,7 +74,7 @@ class DafTestCase(unittest.TestCase):
|
|||
|
||||
def testDatatypeIsSupported(self):
|
||||
allSupported = DAL.getSupportedDatatypes()
|
||||
self.assertIn(self.datatype.lower(), allSupported)
|
||||
self.assertIn(self.datatype, allSupported)
|
||||
|
||||
def testGetRequiredIdentifiers(self):
|
||||
req = DAL.newDataRequest(self.datatype)
|
||||
|
|
|
@ -33,24 +33,26 @@ class ModelSoundingTestCase(baseDafTestCase.DafTestCase):
|
|||
|
||||
datatype = "modelsounding"
|
||||
|
||||
reporttype = "ETA"
|
||||
|
||||
def testGetAvailableParameters(self):
|
||||
req = DAL.newDataRequest(self.datatype)
|
||||
self.runParametersTest(req)
|
||||
|
||||
def testGetAvailableLocations(self):
|
||||
req = DAL.newDataRequest(self.datatype)
|
||||
req.addIdentifier("reportType", "ETA")
|
||||
req.addIdentifier("reportType", self.reporttype)
|
||||
self.runLocationsTest(req)
|
||||
|
||||
def testGetAvailableTimes(self):
|
||||
req = DAL.newDataRequest(self.datatype)
|
||||
req.addIdentifier("reportType", "ETA")
|
||||
req.addIdentifier("reportType", self.reporttype)
|
||||
req.setLocationNames(params.OBS_STATION)
|
||||
self.runTimesTest(req)
|
||||
|
||||
def testGetGeometryData(self):
|
||||
req = DAL.newDataRequest(self.datatype)
|
||||
req.addIdentifier("reportType", "ETA")
|
||||
req.addIdentifier("reportType", self.reporttype)
|
||||
req.setLocationNames(params.OBS_STATION)
|
||||
req.setParameters("temperature", "pressure", "specHum", "sfcPress", "temp2", "q2")
|
||||
print("Testing getGeometryData()")
|
||||
|
@ -80,7 +82,7 @@ class ModelSoundingTestCase(baseDafTestCase.DafTestCase):
|
|||
|
||||
def testGetGeometryDataWithEnvelope(self):
|
||||
req = DAL.newDataRequest(self.datatype)
|
||||
req.addIdentifier("reportType", "ETA")
|
||||
req.addIdentifier("reportType", self.reporttype)
|
||||
req.setEnvelope(params.ENVELOPE)
|
||||
req.setParameters("temperature", "pressure", "specHum", "sfcPress", "temp2", "q2")
|
||||
print("Testing getGeometryData()")
|
||||
|
|
Loading…
Add table
Reference in a new issue