Format according to the way 'black' likes it
@@ -67,8 +67,12 @@ def getWitnessResult(witness, verification_result):
# print(witness.get('name'))
status_from_validation = witness.find('column[@title="status"]').get("value")
try:
- status_from_verification = verification_result.find('column[@title="status"]').get("value")
- category_from_verification = verification_result.find('column[@title="category"]').get("value")
+ status_from_verification = verification_result.find(
+ 'column[@title="status"]'
+ ).get("value")
+ category_from_verification = verification_result.find(
+ 'column[@title="category"]'
+ ).get("value")
except:
status_from_verification = "not found"
category_from_verification = "not found"
@@ -124,8 +128,12 @@ def main(argv=None):
for result in resultXML.findall("run"):
run = result.get("name")
try:
- status_from_verification = result.find('column[@title="status"]').get("value")
- category_from_verification = result.find('column[@title="category"]').get("value")
+ status_from_verification = result.find(
+ 'column[@title="status"]'
+ ).get("value")
+ category_from_verification = result.find(
+ 'column[@title="category"]'
+ ).get("value")
except:
status_from_verification = "not found"
category_from_verification = "not found"
@@ -135,7 +143,9 @@ def main(argv=None):
# copy data from witness
if witness is not None and len(witness) > 0:
if result.get("properties") == "coverage-error-call":
- status_from_validation = witness.find('column[@title="status"]').get("value")
+ status_from_validation = witness.find(
+ 'column[@title="status"]'
+ ).get("value")
if status_from_validation == "true":
statusWit, categoryWit = (status_from_verification, "correct")
category_from_verification = "correct"
@@ -145,9 +155,9 @@ def main(argv=None):
result.append(scoreColumn)
elif result.get("properties") == "coverage-branches":
try:
- coverage_value = (
- witness.find('column[@title="branches_covered"]').get("value").replace("%", "")
- )
+ coverage_value = witness.find(
+ 'column[@title="branches_covered"]'
+ ).get("value").replace("%", "")
except:
coverage_value = "0.00"
statusWit, categoryWit = (status_from_verification, "correct")
