Handle strange cases with no labels

This commit is contained in:
Laurent Rineau 2017-10-20 17:04:45 +02:00
parent 45d60917e4
commit 5d6264fdbb
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ for t in testing.findall('Test'):
"Name": t.find('Name').text, \
"Status": t.attrib['Status'], \
"Output": t.find('Results').find('Measurement').find('Value').text, \
"Labels": [l.text for l in t.find('Labels').findall('Label')], \
"Labels": [l.text for l in t.find('Labels').findall('Label')] if t.find('Labels') is not None else ['UNKNOWN_LABEL'], \
}
tests_per_label = defaultdict(list)