Skip to content
Snippets Groups Projects
Commit f380ab51 authored by Jacques Grelet's avatar Jacques Grelet
Browse files

update tests

parent 1e93db8b
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ CREATOR = "Jacques.Grelet@ird.fr"
[ctd]
# extract profile/station number from fileName
#station = 'fr29(\d{3})'
station = 'fr29(\d{3})'
titleSummary = "CTD profiles processed during PIRATA-FR29 cruise"
typeInstrument = "SBE911+"
instrumentNumber = "09P1263"
......@@ -165,7 +165,7 @@ comment = "Extract from .edf files"
[xbt.header]
endHeader = '^Depth\s*\(m\)'
#station = 'Sequence\s*#\s*:\s*(\d*)'
station = 'Sequence\s*#\s*:\s*(\d*)'
TIME = 'Time of Launch\s*[:=]\s*(\d+):(\d+):(\d+)'
DATE = 'Date of Launch\s*[:=]\s*(\d+)/(\d+)/(\d+)'
DATETIME = 'System UpLoad Time\s*=\s*(\w+)\s+(\d+)\s+(\d+)\s+(\d+):(\d+):(\d+)'
......
......@@ -38,8 +38,7 @@ class testConfig(unittest.TestCase):
'PI': 'BOURLES',
'CREATOR': 'Jacques.Grelet@ird.fr'}
self.ctd = {'cruisePrefix': 'fr29',
'stationPrefixLength': 3,
self.ctd = {'station': 'fr29(\d{3})',
'titleSummary': 'CTD profiles processed during PIRATA-FR29 cruise',
'typeInstrument': 'SBE911+',
'instrumentNumber': '09P1263',
......@@ -58,8 +57,7 @@ class testConfig(unittest.TestCase):
'operator': 'Operator\s*:\s*(.*)',
'type': 'Type\s*:\s*(.*)'}
self.xbt = {'cruisePrefix': "fr29",
'stationPrefixLength': 3,
self.xbt = {'station': '[CT]\d+_(\d{5})',
'typeInstrument': "SIPPICAN+",
'instrumentNumber': "N/A",
'acquisitionSoftware': "WinMK21",
......@@ -155,7 +153,7 @@ class testConfig(unittest.TestCase):
def test_split_xbt(self):
""" Test if all value in block [split.xbt] are correct """
d = self.cfg['split']['xbt']
d = self.cfg['xbt']['split']
for k in d.keys():
self.assertEqual(d[k], self.splitXbt[k])
......
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