def setUp(self): self.c = make_logged_in_client(is_superuser=False) grant_access("test", "test", "indexer") add_to_group("test") self.user = User.objects.get(username='******') self.solr_client = SolrClient(self.user, api=MockSolrCdhCloudHdfsApi()) self.finish = ENABLE_NEW_INDEXER.set_for_testing(True)
def setUp(self): self.c = make_logged_in_client(is_superuser=False) grant_access("test", "test", "indexer") add_to_group("test") self.finish = ENABLE_NEW_INDEXER.set_for_testing(True)