Commit 9edbed04 by Anthony Mangano

fix backend state in SearchIndexTestMixin tearDown method

parent 2978601b
......@@ -36,8 +36,9 @@ class SearchIndexTestMixin(object):
self.index_prefix = self.backend.index_name
def tearDown(self):
""" Remove the indexes we created """
""" Remove the indexes we created and reset the backend index_name."""
self.backend.conn.indices.delete(index=self.index_prefix + '_*')
self.backend.index_name = self.index_prefix
super(SearchIndexTestMixin, self).tearDown()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment