Exemple #1
0
 def setUp(self):
     ShinyTestCase.setUp(self)
     from shinymud.models.area import Area
     self.area = Area.create({'name':'foo'})
     self.room = self.area.new_room()
     self.item = self.area.new_item()
     self.npc = self.area.new_npc()
Exemple #2
0
 def setUp(self):
     ShinyTestCase.setUp(self)
     # add a builder
     from shinymud.data import config
     from shinymud.models.player import Player
     from shinymud.models.area import Area
     from shinymud.commands.build_commands import build_list
     from shinymud.modes.build_mode import BuildMode
     self.bob = Player(('bob', 'bar'))
     self.bob.mode = None
     self.bob.playerize({'name':'bob'})
     self.world.player_add(self.bob)
     self.bob.mode = BuildMode(self.bob)
     self.bob.permissions = self.bob.permissions | config.BUILDER
    def setUp(self):
        ShinyTestCase.setUp(self)
        from shinymud.models.player import Player
        from shinymud.models.area import Area
        from shinymud.models.room import Room
        from shinymud.modes.build_mode import BuildMode
        from shinymud.data import config

        self.bob = Player(("bob", "bar"))
        self.bob.mode = None
        self.bob.playerize({"name": "bob"})
        self.world.player_add(self.bob)
        self.bob.mode = BuildMode(self.bob)
        self.bob.permissions = self.bob.permissions | config.BUILDER

        self.area = Area.create({"name": "foo"})
    def setUp(self):
        ShinyTestCase.setUp(self)
        from shinymud.models.player import Player
        from shinymud.models.area import Area
        from shinymud.models.room import Room
        from shinymud.modes.build_mode import BuildMode
        from shinymud.data import config

        self.bob = Player(('bob', 'bar'))
        self.bob.mode = None
        self.bob.playerize({'name': 'bob'})
        self.world.player_add(self.bob)
        self.bob.mode = BuildMode(self.bob)
        self.bob.permissions = self.bob.permissions | config.BUILDER

        self.area = Area.create({'name': 'foo'})
Exemple #5
0
 def setUp(self):
     ShinyTestCase.setUp(self)
     from shinymud.models.player import Player
     from shinymud.models.npc import Npc
     from shinymud.models.area import Area
     from shinymud.models.room import Room
     from shinymud.modes.build_mode import BuildMode
     from shinymud.data import config
     
     self.PERMS = config.PERMS
     
     #"bob" is created so we can tell build mode functions which player called them.
     #We probably don't need bob since this functionality is only important when permissions
     #are concerned in build commands. We'll create and pass him in anyways for now.
     self.bob = Player(('bob', 'bar'))
     self.bob.mode = None
     self.bob.playerize({'name':'bob'})
     self.world.player_add(self.bob)
     self.bob.mode = BuildMode(self.bob)
     self.bob.permissions = self.bob.permissions | self.PERMS['builder']
     
     self.area = Area.create({'name': 'foo'})
Exemple #6
0
    def setUp(self):
        ShinyTestCase.setUp(self)
        from shinymud.models.player import Player
        from shinymud.models.npc import Npc
        from shinymud.models.area import Area
        from shinymud.models.room import Room
        from shinymud.modes.build_mode import BuildMode
        from shinymud.data import config

        self.PERMS = config.PERMS

        #"bob" is created so we can tell build mode functions which player called them.
        #We probably don't need bob since this functionality is only important when permissions
        #are concerned in build commands. We'll create and pass him in anyways for now.
        self.bob = Player(('bob', 'bar'))
        self.bob.mode = None
        self.bob.playerize({'name': 'bob'})
        self.world.player_add(self.bob)
        self.bob.mode = BuildMode(self.bob)
        self.bob.permissions = self.bob.permissions | self.PERMS['builder']

        self.area = Area.create({'name': 'foo'})
Exemple #7
0
 def setUp(self):
     ShinyTestCase.setUp(self)
     from shinymud.models.player import Player
     from shinymud.models.npc import Npc
     from shinymud.models.area import Area
     from shinymud.models.room import Room
     from shinymud.modes.build_mode import BuildMode
     from shinymud.data import config
     
     self.PERMS = config.PERMS
     
     self.bob = Player(('bob', 'bar'))
     self.bob.mode = None
     self.bob.playerize({'name':'bob'})
     self.world.player_add(self.bob)
     self.bob.mode = BuildMode(self.bob)
     self.bob.permissions = self.bob.permissions | self.PERMS['builder']
     
     self.area = Area.create({'name': 'foo'})
     self.room = self.area.new_room()
     
     self.area2 = Area.create({'name': 'SimCity'})
     self.area2_script = self.area2.new_script()
Exemple #8
0
    def setUp(self):
        ShinyTestCase.setUp(self)
        from shinymud.models.player import Player
        from shinymud.models.npc import Npc
        from shinymud.models.area import Area
        from shinymud.models.room import Room
        from shinymud.modes.build_mode import BuildMode
        from shinymud.data import config

        self.PERMS = config.PERMS

        self.bob = Player(('bob', 'bar'))
        self.bob.mode = None
        self.bob.playerize({'name': 'bob'})
        self.world.player_add(self.bob)
        self.bob.mode = BuildMode(self.bob)
        self.bob.permissions = self.bob.permissions | self.PERMS['builder']

        self.area = Area.create({'name': 'foo'})
        self.room = self.area.new_room()

        self.area2 = Area.create({'name': 'SimCity'})
        self.area2_script = self.area2.new_script()
Exemple #9
0
 def setUp(self):
     ShinyTestCase.setUp(self)
     table = "CREATE TABLE foo (id INTEGER PRIMARY KEY,val1 TEXT,val2 INTEGER)"
     self.world.db.conn.execute(table)
Exemple #10
0
    def setUp(self):
        ShinyTestCase.setUp(self)
        from shinymud.models.area import Area

        self.area = Area.create({"name": "blarg"})
        self.room = self.area.new_room()
Exemple #11
0
 def setUp(self):
     ShinyTestCase.setUp(self)
     from shinymud.models.area import Area
     self.area = Area.create({'name': 'blarg'})
     self.room = self.area.new_room()
Exemple #12
0
 def setUp(self):
     ShinyTestCase.setUp(self)
     from shinymud.models.area import Area
     self.area = Area.create({'name': 'boo'})
Exemple #13
0
 def setUp(self):
     ShinyTestCase.setUp(self)
     table = "CREATE TABLE foo (id INTEGER PRIMARY KEY,val1 TEXT,val2 INTEGER)"
     self.world.db.conn.execute(table)
Exemple #14
0
 def setUp(self):
     ShinyTestCase.setUp(self)
     from shinymud.models.area import Area
     self.area = Area.create({'name':'boo'})