You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
======================================================================
ERROR: test_2 (__main__.TestTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test2.py", line 27, in setUp
self.kitty.save()
File "tests/test2.py", line 18, in save
super(self.__class__, self).save(*args, **kwargs)
File "/home/up/.virtualenvs/flask-mongoengine-test/local/lib/python2.7/site-packages/mongoengine-0.7.0-py2.7.egg/mongoengine/document.py", line 210, in save
collection = self.__class__.objects._collection
File "/home/up/.virtualenvs/flask-mongoengine-test/local/lib/python2.7/site-packages/mongoengine-0.7.0-py2.7.egg/mongoengine/queryset.py", line 583, in _collection
self._ensure_indexes()
File "/home/up/.virtualenvs/flask-mongoengine-test/local/lib/python2.7/site-packages/mongoengine-0.7.0-py2.7.egg/mongoengine/queryset.py", line 482, in _ensure_indexes
fields = spec.pop('fields')
KeyError: 'fields'
Using this debug code I've put to mongoengine/queryset.py ~583:
Here a test case I've prepared (for ME-0.7):
When I run it, it gives:
Using this debug code I've put to mongoengine/queryset.py ~583:
I see that items inside meta's index_specs sometimes disappear:
Tear down code is taken from hmarr#422
The text was updated successfully, but these errors were encountered: