Fix errors in testing.
This commit is contained in:
parent
1fbb4c4358
commit
22e57db4a7
5 changed files with 16 additions and 14 deletions
|
|
@ -52,7 +52,9 @@ class CommandTest(EvenniaTest):
|
|||
caller = caller if caller else self.char1
|
||||
receiver = receiver if receiver else caller
|
||||
cmdobj.caller = caller
|
||||
cmdobj.cmdstring = cmdstring if cmdstring else cmdobj.key
|
||||
cmdobj.cmdname = cmdstring if cmdstring else cmdobj.key
|
||||
cmdobj.raw_cmdname = cmdobj.cmdname
|
||||
cmdobj.cmdstring = cmdobj.cmdname # deprecated
|
||||
cmdobj.args = args
|
||||
cmdobj.cmdset = cmdset
|
||||
cmdobj.session = SESSIONS.session_from_sessid(1)
|
||||
|
|
@ -229,7 +231,7 @@ class TestBuilding(CommandTest):
|
|||
self.call(building.CmdName(), "Obj2=Obj3", "Object's name changed to 'Obj3'.")
|
||||
|
||||
def test_desc(self):
|
||||
self.call(building.CmdSetDesc(), "Obj2=TestDesc", "The description was set on Obj2(#5).")
|
||||
self.call(building.CmdDesc(), "Obj2=TestDesc", "The description was set on Obj2(#5).")
|
||||
|
||||
def test_wipe(self):
|
||||
self.call(building.CmdDestroy(), "Obj", "Obj was destroyed.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue