X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tests%2Fcoverage_dungeon.py;h=80102e3b01c53c5c3fab81d83017329cab66a8a5;hb=643eab4e9cb1309db10418f0788865a8312ddc5e;hp=288b1c01a707d4f323ac35aa5647de71a3bad519;hpb=a01c08385c0ce32976b94a10019576c348aa53bc;p=open-adventure.git diff --git a/tests/coverage_dungeon.py b/tests/coverage_dungeon.py index 288b1c0..80102e3 100755 --- a/tests/coverage_dungeon.py +++ b/tests/coverage_dungeon.py @@ -147,7 +147,7 @@ def threshold_coverage(classes, text, report): # property for name, item in enumerate(classes): if name not in report["messages"]: - report["messages"][name] = {"covered" : "False"} + report["messages"][name] = {"covered" : False} report["total"] += 1 if not report["messages"][name]["covered"] and search(item["message"], text): report["messages"][name]["covered"] = True @@ -158,7 +158,7 @@ def arb_coverage(arb_msgs, text, report): if name not in report["messages"]: report["messages"][name] = {"covered" : False} report["total"] += 1 - if not report["messages"][name]["covered"] and search(message, text) or name in DANGLING_MESSAGES: + if not report["messages"][name]["covered"] and (search(message, text) or name in DANGLING_MESSAGES): report["messages"][name]["covered"] = True report["covered"] += 1