def test_search_response_is_empty_if_indexer_fails(self):
with mock.patch("kinto_elasticsearch.indexer.Indexer.search",
side_effect=elasticsearch.ElasticsearchException):
resp = self.app.post("/buckets/bid/collections/cid/search",
headers=self.headers)
result = resp.json
assert result == {}
评论列表
文章目录