From a0257ed7e73383a9bd395877c83351bea8311cd3 Mon Sep 17 00:00:00 2001 From: Matthieu Rigal Date: Tue, 2 Jun 2015 00:14:18 +0200 Subject: [PATCH] Updated test to use new create_index method --- tests/document/indexes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/document/indexes.py b/tests/document/indexes.py index f9f68e57..dcc71e5b 100644 --- a/tests/document/indexes.py +++ b/tests/document/indexes.py @@ -324,7 +324,7 @@ class IndexesTest(unittest.TestCase): location = DictField() name = StringField() - Place.ensure_index({'fields': (')location.point', 'name')}, bucketSize=10) + Place.create_index({'fields': (')location.point', 'name')}, bucketSize=10) info = Place._get_collection().index_information() info = [value['key'] for key, value in info.iteritems()] self.assertTrue([('location.point', 'geoHaystack'), ('name', 1)] in info)