示例#1
0
 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}
     })
示例#2
0
文件: test_backup.py 项目: audip/lunr
 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}
     })
示例#3
0
文件: test_worker.py 项目: audip/lunr
 def setUp(self):
     reset()
     self.scratch = mkdtemp()
示例#4
0
 def setUp(self):
     reset()
     self.scratch = mkdtemp()