示例#1
0
    def setUp(self):
        super(ImpimAPIAsyncHTTPTestCase, self).setUp()

        self._http_client = AsyncHTTPClient(self)
        self._elastic_search_for_test = ElasticSearchForTest(
            self._app.config, self._http_client)

        self._elastic_search_for_test.cleanup()
        file_system_for_test.cleanup()
示例#2
0
    def setUp(self):
        super(ElasticSearchTestCase, self).setUp()

        config = MockConfig()

        self._http_client = AsyncHTTPClient(self.io_loop)
        self._test_http_client = TestAsyncHTTPClient(self)
        self._elastic_search_urls = Urls(config)
        self._elastic_search = ElasticSearch(config=config, http_client=self._http_client)
        self._elastic_search_for_test = ElasticSearchForTest(config=config, http_client=self._test_http_client)

        self._elastic_search_for_test.cleanup()