def test_clean_db(self): sqlite_test_2 = SQLiteCacheDB( os.path.join(self.session_base_dir, "test_db.db"), DB_SCRIPT_ABSOLUTE_PATH) sqlite_test_2.initialize() sqlite_test_2.initial_begin() sqlite_test_2.clean_db(vacuum=True, exiting=True)
def test_clean_db(self): sqlite_test_2 = SQLiteCacheDB( os.path.join(self.session_base_dir, "test_db.db"), self.tribler_db_script) sqlite_test_2.initialize() sqlite_test_2.initial_begin() sqlite_test_2.clean_db(vacuum=True, exiting=True)
def test_clean_db(self): sqlite_test_2 = SQLiteCacheDB(os.path.join(self.session_base_dir, "test_db.db"), DB_SCRIPT_ABSOLUTE_PATH) sqlite_test_2.clean_db(vacuum=True, exiting=False) sqlite_test_2.close()