Updated index creation now tied to Document class ((MongoEngine/mongoengine#102)

This commit is contained in:
Ross Lawley
2012-11-07 15:04:45 +00:00
parent 9ca96e4e17
commit 8706fbe461
8 changed files with 115 additions and 109 deletions

View File

@@ -3078,7 +3078,6 @@ class QuerySetTest(unittest.TestCase):
self.assertEqual([1, 2, 3], numbers)
Number.drop_collection()
def test_ensure_index(self):
"""Ensure that manual creation of indexes works.
"""
@@ -3086,7 +3085,7 @@ class QuerySetTest(unittest.TestCase):
message = StringField()
meta = {'allow_inheritance': True}
Comment.objects.ensure_index('message')
Comment.ensure_index('message')
info = Comment.objects._collection.index_information()
info = [(value['key'],