Merge pull request #1610 from TehomCD/fix_commandtest_at_pre_cmd

Fix CommandTest to stop if at_pre_cmd should stop execution.
This commit is contained in:
Griatch 2018-04-18 09:16:26 +02:00 committed by GitHub
commit 060cfde23e

View file

@ -76,7 +76,8 @@ class CommandTest(EvenniaTest):
returned_msg = ""
try:
receiver.msg = Mock()
cmdobj.at_pre_cmd()
if cmdobj.at_pre_cmd():
return
cmdobj.parse()
ret = cmdobj.func()
if isinstance(ret, types.GeneratorType):