def test_wipe(self):
""" Test wiping the search index.
Objects in the search index prior to the wipe should no longer
be searchable.
"""
thread = create_thread()
self.backend.add(thread)
self.backend.wipe()
with self.assertRaises(NotFoundError):
self.backend.es.get_source(
index=self.backend.index,
doc_type='thread',
id=thread.pk)
test_search_backends.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录