changed cmdset_default -> cmdset_character and changed the class names to match. Added migrations to properly update default-set cmdset_stores to the new positions (objects created from custom types are not migrated, these should see errors and need to re-point their imports to the new defaults)

This commit is contained in:
Griatch 2013-04-12 13:01:20 +02:00
parent c152202082
commit a6544f2848
15 changed files with 193 additions and 81 deletions

View file

@ -122,14 +122,14 @@ class TestGeneral(CommandTest):
#self.call(general.CmdQuit(), "", "You are already home")
from src.commands.default import help
from src.commands.default.cmdset_default import DefaultCmdSet
from src.commands.default.cmdset_character import CharacterCmdSet
class TestHelp(CommandTest):
CID = 2
def test_cmds(self):
sep = "-"*78 + "\n"
self.call(help.CmdHelp(), "", sep + " Command help entries", cmdset=DefaultCmdSet())
self.call(help.CmdHelp(), "", sep + " Command help entries", cmdset=CharacterCmdSet())
self.call(help.CmdSetHelp(), "testhelp, General = This is a test", "Topic 'testhelp' was successfully created.")
self.call(help.CmdHelp(), "testhelp", sep + "Help topic for testhelp", cmdset=DefaultCmdSet())
self.call(help.CmdHelp(), "testhelp", sep + "Help topic for testhelp", cmdset=CharacterCmdSet())
from src.commands.default import system