Clean up output slightly

The converse request / response messages are now hidden.
pull/1527/head
Åke Forslund 2018-05-04 09:50:51 +02:00 committed by Matthew D. Scholefield
parent 83a6be7fcb
commit 40fd0487d0
1 changed files with 6 additions and 1 deletions

View File

@ -290,6 +290,10 @@ class SkillTest(object):
return True
# Messages that should not print debug info
HIDDEN_MESSAGES = ['skill.converse.request', 'skill.converse.response']
class EvaluationRule(object):
"""
This class initially convert the test_case json file to internal rule
@ -376,7 +380,8 @@ class EvaluationRule(object):
Args:
msg: The message event to evaluate
"""
print "\nEvaluating message: " + str(msg)
if msg.get('__type__', '') not in HIDDEN_MESSAGES:
print "\nEvaluating message: " + str(msg)
for r in self.rule:
self._partial_evaluate(r, msg)