Exemplo n.º 1
0
def thing_setup():
    from leaf.thing.job import JobThing
    from leaf.thing.base import LeaderboardThing, EntryThingTrait, BaseEntryThing
    from leaf.thing.bucket import BucketEntryThing
    from leaf.thing.block import BlockEntryThing
    from leaf.thing.chunk import ChunkEntryThing
    _things['job'] = JobThing()
    _things['leaderboard'] = LeaderboardThing()
    _things['entry'] = EntryThingTrait()

    _entrythings['base'] = BaseEntryThing()
    _entrythings['bucket'] = BucketEntryThing()
    _entrythings['block'] = BlockEntryThing()
    _entrythings['chunk'] = ChunkEntryThing()
Exemplo n.º 2
0
 def setUp(self):
     data.up(lid=2)
     self.e = BaseEntryThing()