def setUpClass(cls): cls.db = DatabaseBackend(Core()) cls.db.manager = cls.db.core cls.db.manager.statusMsg = defaultdict(lambda: "statusmsg") cls.config = ConfigParser() cls.db.setup() cls.db.clearAllConfigs()
def setUpClass(cls): c = Core() # db needs separate initialisation cls.db = c.db cls.db.purgeAll() cls.m = cls.db.manager = c.files
def setUpClass(cls): c = Core() # db needs seperate initialisation cls.db = c.db = DatabaseBackend(c) cls.db.setup() cls.db.purgeAll() cls.m = cls.db.manager = FileManager(c)
def setUpClass(cls): cls.core = Core() cls.db = DatabaseBackend(cls.core) cls.core.db = cls.db cls.db.manager = cls.core cls.db.manager.statusMsg = defaultdict(lambda: "statusmsg") cls.parser = ConfigParser() cls.config = ConfigManager(cls.core, cls.parser) cls.db.setup()
def setUpClass(cls): cls.pids = [-1] cls.fids = [] cls.db = DatabaseBackend(Core()) cls.db.manager = cls.db.core cls.db.setup() cls.db.purgeAll()
def setUpClass(cls): cls.c = Core() cls.db = cls.c.db cls.db.purgeAll() cls.db.addDebugUser(normalUser.uid) cls.db.addDebugUser(adminUser.uid) cls.db.addDebugUser(otherUser.uid) cls.files = cls.c.files cls.m = cls.c.downloadManager
def setUpClass(cls): cls.core = Core()
def setUpClass(cls): # Only needed to get imports right cls.core = Core() cls.config = ConfigParser()
def setUpClass(cls): cls.core = Core() cls.db = DatabaseBackend(cls.core) cls.core.db = cls.db cls.db.setup()
def setUpClass(cls): cls.core = Core() cls.db = cls.core.db
def setUpClass(cls): cls.req = RequestFactory(Core())