Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 def index(self):
     return index.IndexManager(self.file_root,
                               template_env=self.index_templates)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 def index(self):
     return index.IndexManager(
         self.file_root,
         template_env=self.index_templates,
         executor=futures.ThreadPoolExecutor(max_workers=4))