Use if-else to yield test results, otherwise it yields both
@@ -112,7 +112,7 @@ def com_daltonmaag_check_required_fields(font):
if recommended_fields:
yield FAIL, "Required field(s) missing: {}".format(recommended_fields)
-
+ else:
yield PASS, "Required fields present."
@@ -138,7 +138,7 @@ def com_daltonmaag_check_recommended_fields(font):
if recommended_fields:
yield WARN, "Recommended field(s) missing: {}".format(
recommended_fields)
-
+ else:
yield PASS, "Recommended fields present."
@@ -168,7 +168,7 @@ def com_daltonmaag_check_unnecessary_fields(font):
if unnecessary_fields:
yield WARN, "Unnecessary field(s) present: {}".format(
unnecessary_fields)
-
+ else:
yield PASS, "Unnecessary fields omitted."
@@ -194,7 +194,7 @@ def com_daltonmaag_check_empty_fields(font):
if empty_fields:
yield WARN, "Empty field(s) present: {}".format(empty_fields)
-
+ else:
yield PASS, "No empty fields."
