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)
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)
def initDatabase(self, name): db = Database(CSVImplementation()) db.init() db.load(name) return db
def initDatabase(self, name, data): self.createTestCSV(name, data) db = Database(CSVImplementation()) db.init() db.load(name) return db