Cleaned up tests to use newly-renamed Account hooks for add/remove characters.
This commit is contained in:
parent
f782cd8fc8
commit
4b80b200d8
20 changed files with 774 additions and 50 deletions
|
|
@ -90,7 +90,7 @@ class ContribCmdCharCreate(MuxAccountCommand):
|
|||
)
|
||||
# initalize the new character to the beginning of the chargen menu
|
||||
new_character.db.chargen_step = "menunode_welcome"
|
||||
account.add_character(new_character)
|
||||
account.add_character_to_playable_list(new_character)
|
||||
|
||||
# set the menu node to start at to the character's last saved step
|
||||
startnode = new_character.db.chargen_step
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class TestCharacterCreator(BaseEvenniaCommandTest):
|
|||
self.account.swap_typeclass(character_creator.ContribChargenAccount)
|
||||
|
||||
def test_ooc_look(self):
|
||||
self.account.db._playable_characters = [self.char1]
|
||||
self.account.add_character_to_playable_list(self.char1)
|
||||
self.account.unpuppet_all()
|
||||
|
||||
self.char1.db.chargen_step = "start"
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ def node_apply_character(caller, raw_string, **kwargs):
|
|||
"""
|
||||
tmp_character = kwargs["tmp_character"]
|
||||
new_character = tmp_character.apply(caller)
|
||||
caller.add_character(new_character)
|
||||
caller.add_character_to_playable_list(new_character)
|
||||
|
||||
text = "Character created!"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue