From: Aaron Traas Date: Thu, 13 Jul 2017 19:10:26 +0000 (-0400) Subject: YAML coverage parser fixed to equate "NO_MESSAGE" with None X-Git-Tag: 1.3~115 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2ec9c7cc1a053e8e0fe1a76447d156828210f3db;p=open-adventure.git YAML coverage parser fixed to equate "NO_MESSAGE" with None --- diff --git a/tests/coverage_dungeon.py b/tests/coverage_dungeon.py index 44ce626..a61c6f7 100755 --- a/tests/coverage_dungeon.py +++ b/tests/coverage_dungeon.py @@ -122,7 +122,7 @@ def obit_coverage(obituaries, text): def actions_coverage(actions, text): for name, action in actions: - if action["message"] == None: + if action["message"] == None or action["message"] == "NO_MESSAGE": action["message"] = True if action["message"] != True: if search(action["message"], text):