def setUp(self): memory.reset() self.scratch = mkdtemp() self.run_dir = os.path.join(self.scratch, 'run') self.backup_dir = os.path.join(self.scratch, 'backups') os.mkdir(self.backup_dir) self.conf = LunrConfig({ 'storage': {'run_dir': self.run_dir, 'skip_fork': True}, 'backup': {'client': 'disk'}, 'disk': {'path': self.backup_dir} })
def setUp(self): reset() self.scratch = mkdtemp()