def __init__(self, *args, **kw): super(ShishoApplication, self).__init__(*args, **kw) self.__localpath = os.path.expanduser(os.path.join('~', '.hebi-no-shisho')) if not os.path.isdir(self.__localpath): os.makedirs(self.__localpath) self.__database = database.Database(os.path.join(self.__localpath, 'database.db')) self.__rootwindow = mainwindow.MainWindow(self.__database)
def setUp(self): self.__testbase = database.Database(':memory:') self.__testbase.reset_database('test')
def setUp(self): self.database = database.Database(':memory:') self.database.reset_database('test') self.database.add_book_information(**testInformation) self.database.add_user(**testUser) self.database.add_book_exemplary(**testExemplary)
def setUp(self): self.database = database.Database(':memory:')