Fix except-finally section that swallowed command unittest error message. Resolves #1629.
This commit is contained in:
parent
42038737ff
commit
1923689040
3 changed files with 30 additions and 23 deletions
|
|
@ -10,6 +10,9 @@
|
||||||
- Made Portal the AMP Server for starting/restarting the Server (the AMP client)
|
- Made Portal the AMP Server for starting/restarting the Server (the AMP client)
|
||||||
- Dynamic logging now happens using `evennia -l` rather than by interactive.
|
- Dynamic logging now happens using `evennia -l` rather than by interactive.
|
||||||
- Made AMP secure against erroneous HTTP requests on the wrong port (return error messages).
|
- Made AMP secure against erroneous HTTP requests on the wrong port (return error messages).
|
||||||
|
- The `evennia istart` option will start/switch the Server in foreground (interactive) mode, where it logs
|
||||||
|
to terminal and can be stopped with Ctrl-C. Using `evennia reload`, or reloading in-game, will
|
||||||
|
return Server to normal daemon operation.
|
||||||
|
|
||||||
### Prototype changes
|
### Prototype changes
|
||||||
|
|
||||||
|
|
@ -26,9 +29,13 @@
|
||||||
change from Evennia 0.7 which allowed 'mixin' prototypes without `typeclass`/`prototype_key`. To
|
change from Evennia 0.7 which allowed 'mixin' prototypes without `typeclass`/`prototype_key`. To
|
||||||
make a mixin now, give it a default typeclass, like `evennia.objects.objects.DefaultObject` and just
|
make a mixin now, give it a default typeclass, like `evennia.objects.objects.DefaultObject` and just
|
||||||
override in the child as needed.
|
override in the child as needed.
|
||||||
|
- Spawning an object using a prototype will automatically assign a new tag to it, named the same as
|
||||||
|
the `prototype_key` and with the category `from_prototype`.
|
||||||
- The spawn command was extended to accept a full prototype on one line.
|
- The spawn command was extended to accept a full prototype on one line.
|
||||||
- The spawn command got the /save switch to save the defined prototype and its key.
|
- The spawn command got the /save switch to save the defined prototype and its key.
|
||||||
- The command spawn/menu will now start an OLC (OnLine Creation) menu to load/save/edit/spawn prototypes.
|
- The command spawn/menu will now start an OLC (OnLine Creation) menu to load/save/edit/spawn prototypes.
|
||||||
|
- The OLC allows for updating all objects previously created using a given prototype with any
|
||||||
|
changes done.
|
||||||
|
|
||||||
### EvMenu
|
### EvMenu
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ class CmdLook(COMMAND_DEFAULT_CLASS):
|
||||||
target = caller.search(self.args)
|
target = caller.search(self.args)
|
||||||
if not target:
|
if not target:
|
||||||
return
|
return
|
||||||
self.msg((caller.at_look(target), {'type':'look'}), options=None)
|
self.msg((caller.at_look(target), {'type': 'look'}), options=None)
|
||||||
|
|
||||||
|
|
||||||
class CmdNick(COMMAND_DEFAULT_CLASS):
|
class CmdNick(COMMAND_DEFAULT_CLASS):
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ class CommandTest(EvenniaTest):
|
||||||
pass
|
pass
|
||||||
except InterruptCommand:
|
except InterruptCommand:
|
||||||
pass
|
pass
|
||||||
finally:
|
|
||||||
# clean out evtable sugar. We only operate on text-type
|
# clean out evtable sugar. We only operate on text-type
|
||||||
stored_msg = [args[0] if args and args[0] else kwargs.get("text", utils.to_str(kwargs, force_string=True))
|
stored_msg = [args[0] if args and args[0] else kwargs.get("text", utils.to_str(kwargs, force_string=True))
|
||||||
for name, args, kwargs in receiver.msg.mock_calls]
|
for name, args, kwargs in receiver.msg.mock_calls]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue