From a1ab7425879d36d75b9f0b44768d8cb2aefce013 Mon Sep 17 00:00:00 2001 From: Tehom Date: Wed, 18 Apr 2018 02:26:01 -0400 Subject: [PATCH] Fix CommandTest to stop if at_pre_cmd should stop execution. --- evennia/commands/default/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):