YAML coverage parser fixed to equate "NO_MESSAGE" with None
authorAaron Traas <aaron@traas.org>
Thu, 13 Jul 2017 19:10:26 +0000 (15:10 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 14 Jul 2017 01:52:27 +0000 (21:52 -0400)
tests/coverage_dungeon.py

index 44ce626a11e3dd626c130a7a6b518dd07bb74972..a61c6f7ef43573f228e914ca0aa3c25c397e8c7a 100755 (executable)
@@ -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):