def test_to_many_results(self):
httpretty.register_uri(
httpretty.GET, "http://dummyhost:80/api/search/universal/absolute",
body=self.generate_search_result(1000000),
content_type="application/json"
)
sr = api.SearchRange("10 minutes ago", arrow.now())
q = api.SearchQuery(sr)
with self.assertRaises(RuntimeError):
self.api.search(q, fetch_all=True)
评论列表
文章目录