Пример #1
0
 def setUp(self):
     super(TestSearchMigration, self).setUp()
     populate_institutions('test')
     self.es = search.search_engine.CLIENT
     search.delete_index(settings.ELASTIC_INDEX)
     search.create_index(settings.ELASTIC_INDEX)
     self.user = factories.UserFactory(fullname='David Bowie')
     self.project = factories.ProjectFactory(title=settings.ELASTIC_INDEX,
                                             creator=self.user,
                                             is_public=True)
Пример #2
0
 def setUp(self):
     super(TestSearchMigration, self).setUp()
     populate_institutions('test')
     self.es = search.search_engine.CLIENT
     search.delete_index(settings.ELASTIC_INDEX)
     search.create_index(settings.ELASTIC_INDEX)
     self.user = factories.UserFactory(fullname='David Bowie')
     self.project = factories.ProjectFactory(
         title=settings.ELASTIC_INDEX,
         creator=self.user,
         is_public=True
     )