def zap_all(self): _, destroy = sqlite_files(self.options, self.prefix) destroy() # zapping happens frequently during test runs, # and during zodbconvert when the process will exist # only for a short time. self.flush_all()
def assertPersistentCache(self, cache): import os from relstorage.cache.persistence import sqlite_files fname, _ = sqlite_files(cache.options, cache.prefix) if fname: self.assertTrue(os.path.exists(fname), fname)
def zap_all(self): _, destroy = sqlite_files(self.options, self.prefix) destroy()