Fix CommandTest to stop if at_pre_cmd should stop execution.

This commit is contained in:
Tehom 2018-04-18 02:26:01 -04:00
parent b3e97b5c3d
commit e48ce5b9a3

View file

@ -75,7 +75,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):