示例#1
0
 def setUp(self):
     self.createTestCSVs()
     self.videoDatabase = CSVImplementation.openDB(Database, self.TEST_DB)
     self.scriptedFileSearch = self.FakeScriptedFileSearch(
         self.ProcessProvider())
     self.messenger = self.FakeMessenger()
     self.migrator = Migrator(self.scriptedFileSearch, self.videoDatabase,
                              self.CopyProvider(), self.messenger)
示例#2
0
 def __init__(self, processProvider):
     self.db = Database(CSVImplementation())
     self.db.init()
 def setUp(self):
     self.createTestCSV()
     self.db = CSVImplementation.openDB(Database, self.TEST_DB)
 def __init__(self, processProvider):
     self.db = Database(CSVImplementation())
     self.db.init()
     self.processProvider = processProvider
     self.scanComplete = False
 def configureDataProviders(self):
     FileManager().guaranteeListOfFilesExist(
         [self.env.VideoList, self.env.LinkedTable])
     self.videos = CSVImplementation.openDB(Database, self.env.VideoList)
     self.linker = CardToVideoLinker.openFullInstance(
         self.videos, self.env.LinkedTable)
示例#6
0
 def initDatabase(self, name):
     db = Database(CSVImplementation())
     db.init()
     db.load(name)
     return db
示例#7
0
 def initDatabase(self, name, data):
     self.createTestCSV(name, data)
     db = Database(CSVImplementation())
     db.init()
     db.load(name)
     return db