Beispiel #1
0
 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()
Beispiel #2
0
    def setUpClass(cls):
        c = Core()
        # db needs separate initialisation
        cls.db = c.db
        cls.db.purgeAll()

        cls.m = cls.db.manager = c.files
Beispiel #3
0
    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)
Beispiel #4
0
 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()
Beispiel #5
0
    def setUpClass(cls):
        cls.pids = [-1]
        cls.fids = []

        cls.db = DatabaseBackend(Core())
        cls.db.manager = cls.db.core

        cls.db.setup()
        cls.db.purgeAll()
Beispiel #6
0
    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()
Beispiel #8
0
 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()
Beispiel #10
0
 def setUpClass(cls):
     cls.core = Core()
     cls.db = cls.core.db
Beispiel #11
0
 def setUpClass(cls):
     cls.req = RequestFactory(Core())