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