diff --git a/evennia/commands/default/tests.py b/evennia/commands/default/tests.py index a645014482..e3715a30c8 100644 --- a/evennia/commands/default/tests.py +++ b/evennia/commands/default/tests.py @@ -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):