mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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:
commit
060cfde23e
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue