mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 14:37:17 +02:00
Adding caching to tags and attribute lookups. Leads to a noticeable speed improvement.
This commit is contained in:
parent
6ad30a8ba5
commit
07af616b67
6 changed files with 145 additions and 150 deletions
|
|
@ -194,7 +194,10 @@ from src.commands.default import player
|
|||
class TestPlayer(CommandTest):
|
||||
CID = 5
|
||||
def test_cmds(self):
|
||||
self.call(player.CmdOOCLook(), "", "Account TestPlayer5 (you are OutofCharacter)", caller=self.player)
|
||||
if settings.MULTISESSION_MODE < 2:
|
||||
self.call(player.CmdOOCLook(), "", "You are outofcharacter (OOC).", caller=self.player)
|
||||
if settings.MULTISESSION_MODE == 2:
|
||||
self.call(player.CmdOOCLook(), "", "Account TestPlayer5 (you are OutofCharacter)", caller=self.player)
|
||||
self.call(player.CmdOOC(), "", "You are already", caller=self.player)
|
||||
self.call(player.CmdIC(), "Char5","You become Char5.", caller=self.player)
|
||||
self.call(player.CmdPassword(), "testpassword = testpassword", "Password changed.", caller=self.player)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue