def make_one(self, pkg='dummy', index_path=None): from cheeseprism import index executor = futures.ThreadPoolExecutor(1) if index_path is None: index_path = self.new_path('test-index') idx = index.IndexManager(index_path, executor=executor) pkg = getattr(self, pkg) pkg.copy(idx.path) self.dummypath = idx.path / pkg.name return idx
def index(self): return index.IndexManager(self.file_root, template_env=self.index_templates)
def make_one(self, index_name='test-index'): from cheeseprism import index self.count = next(self.counter) index_path = self.base / ("%s-%s" % (self.count, index_name)) return index.IndexManager(index_path)
def index(self): return index.IndexManager( self.file_root, template_env=self.index_templates, executor=futures.ThreadPoolExecutor(max_workers=4))