Skip to content

Commit a0257ed

Browse files
committed
Updated test to use new create_index method
1 parent f35d0b2 commit a0257ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/document/indexes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class Place(Document):
324324
location = DictField()
325325
name = StringField()
326326

327-
Place.ensure_index({'fields': (')location.point', 'name')}, bucketSize=10)
327+
Place.create_index({'fields': (')location.point', 'name')}, bucketSize=10)
328328
info = Place._get_collection().index_information()
329329
info = [value['key'] for key, value in info.iteritems()]
330330
self.assertTrue([('location.point', 'geoHaystack'), ('name', 1)] in info)

0 commit comments

Comments
 (0)