Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ======================================================================
- ERROR: test_dynamic_fields_class (tests.transplant_class.<locals>.C)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/fields/fields.py", line 3650, in test_dynamic_fields_class
- doc.save()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 370, in save
- self.ensure_indexes()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 852, in ensure_indexes
- collection = cls._get_collection()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
- cls.ensure_indexes()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
- collection.create_index(fields, background=background, **opts)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1754, in create_index
- self.__create_index(keys, kwargs, session, **cmd_options)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1656, in __create_index
- session=session)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 245, in _command
- retryable_write=retryable_write)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/pool.py", line 517, in command
- collation=collation)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/network.py", line 125, in command
- parse_write_concern_error=parse_write_concern_error)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/helpers.py", line 145, in _check_command_response
- raise OperationFailure(msg % errmsg, code, response)
- pymongo.errors.OperationFailure: The field 'background' is not valid for an _id index specification. Specification: { ns: "mongoenginetest.doc", v: 2, key: { _id: 1 }, background: false, unique: true, sparse: false, name: "_id_1" }
- ======================================================================
- ERROR: test_dynamic_fields_embedded_class (tests.transplant_class.<locals>.C)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/fields/fields.py", line 3666, in test_dynamic_fields_embedded_class
- Doc(my_id=1, embed_me=Embed(field_1="hello"), field_x="x").save()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 370, in save
- self.ensure_indexes()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 852, in ensure_indexes
- collection = cls._get_collection()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
- cls.ensure_indexes()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
- collection.create_index(fields, background=background, **opts)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1754, in create_index
- self.__create_index(keys, kwargs, session, **cmd_options)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1656, in __create_index
- session=session)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 245, in _command
- retryable_write=retryable_write)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/pool.py", line 517, in command
- collation=collation)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/network.py", line 125, in command
- parse_write_concern_error=parse_write_concern_error)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/helpers.py", line 145, in _check_command_response
- raise OperationFailure(msg % errmsg, code, response)
- pymongo.errors.OperationFailure: The field 'background' is not valid for an _id index specification. Specification: { ns: "mongoenginetest.doc", v: 2, key: { _id: 1 }, background: false, unique: true, sparse: false, name: "_id_1" }
- ======================================================================
- ERROR: test_hint (tests.transplant_class.<locals>.C)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/document/indexes.py", line 566, in test_hint
- self.assertEqual(BlogPost.objects.hint([('ZZ', 1)]).count(), 10)
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/queryset/queryset.py", line 133, in count
- return super(QuerySet, self).count(with_limit_and_skip)
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/queryset/base.py", line 389, in count
- return self._cursor.count(with_limit_and_skip=with_limit_and_skip)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/cursor.py", line 755, in count
- cmd, self.__collation, session=self.__session)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1511, in _count
- session=session)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 245, in _command
- retryable_write=retryable_write)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/pool.py", line 517, in command
- collation=collation)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/network.py", line 125, in command
- parse_write_concern_error=parse_write_concern_error)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/helpers.py", line 145, in _check_command_response
- raise OperationFailure(msg % errmsg, code, response)
- pymongo.errors.OperationFailure: error processing query: ns=mongoenginetest.blog_postTree: $and
- Sort: {}
- Proj: {}
- planner returned error: bad hint
- ======================================================================
- ERROR: If you set a field as primary, then unexpected behaviour can occur.
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/document/indexes.py", line 763, in test_unique_and_primary
- user.save()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 370, in save
- self.ensure_indexes()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 852, in ensure_indexes
- collection = cls._get_collection()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
- cls.ensure_indexes()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
- collection.create_index(fields, background=background, **opts)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1754, in create_index
- self.__create_index(keys, kwargs, session, **cmd_options)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1656, in __create_index
- session=session)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 245, in _command
- retryable_write=retryable_write)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/pool.py", line 517, in command
- collation=collation)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/network.py", line 125, in command
- parse_write_concern_error=parse_write_concern_error)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/helpers.py", line 145, in _check_command_response
- raise OperationFailure(msg % errmsg, code, response)
- pymongo.errors.OperationFailure: The field 'background' is not valid for an _id index specification. Specification: { ns: "mongoenginetest.user", v: 2, key: { _id: 1 }, background: false, unique: true, sparse: false, name: "_id_1" }
- ======================================================================
- ERROR: test_bool_with_ordering (tests.transplant_class.<locals>.C)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 4991, in test_bool_with_ordering
- self.assertFalse('$orderby' in op['query'],
- KeyError: 'query'
- ======================================================================
- ERROR: test_bool_with_ordering_from_meta_dict (tests.transplant_class.<locals>.C)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 5027, in test_bool_with_ordering_from_meta_dict
- self.assertFalse('$orderby' in op['query'],
- KeyError: 'query'
- ======================================================================
- ERROR: Ensure that the default ordering can be cleared by calling
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 1263, in test_clear_ordering
- q.get_ops()[0]['query']['$orderby'],
- KeyError: 'query'
- ======================================================================
- ERROR: Make sure adding a comment to the query works.
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 2392, in test_comment
- self.assertEqual(op['query']['$query'], {'age': {'$gte': 18}})
- KeyError: 'query'
- ======================================================================
- ERROR: Ensure filters can be chained together.
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 1164, in test_filter_chaining
- blog_1.save()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 370, in save
- self.ensure_indexes()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 852, in ensure_indexes
- collection = cls._get_collection()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
- cls.ensure_indexes()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
- collection.create_index(fields, background=background, **opts)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1754, in create_index
- self.__create_index(keys, kwargs, session, **cmd_options)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1656, in __create_index
- session=session)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 245, in _command
- retryable_write=retryable_write)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/pool.py", line 517, in command
- collation=collation)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/network.py", line 125, in command
- parse_write_concern_error=parse_write_concern_error)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/helpers.py", line 145, in _check_command_response
- raise OperationFailure(msg % errmsg, code, response)
- pymongo.errors.OperationFailure: The field 'background' is not valid for an _id index specification. Specification: { ns: "mongoenginetest.blog", v: 2, key: { _id: 1 }, background: false, unique: true, sparse: false, name: "_id_1" }
- ======================================================================
- ERROR: Ensure that Doc.objects.get doesn't use any ordering.
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 1306, in test_no_ordering_for_get
- self.assertFalse('$orderby' in q.get_ops()[0]['query'])
- KeyError: 'query'
- ======================================================================
- ERROR: test_query_reference_to_custom_pk_doc (tests.transplant_class.<locals>.C)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 4878, in test_query_reference_to_custom_pk_doc
- a = A.objects.create(id='custom_id')
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/queryset/manager.py", line 37, in __get__
- queryset = queryset_class(owner, owner._get_collection())
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
- cls.ensure_indexes()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
- collection.create_index(fields, background=background, **opts)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1754, in create_index
- self.__create_index(keys, kwargs, session, **cmd_options)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1656, in __create_index
- session=session)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 245, in _command
- retryable_write=retryable_write)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/pool.py", line 517, in command
- collation=collation)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/network.py", line 125, in command
- parse_write_concern_error=parse_write_concern_error)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/helpers.py", line 145, in _check_command_response
- raise OperationFailure(msg % errmsg, code, response)
- pymongo.errors.OperationFailure: The field 'background' is not valid for an _id index specification. Specification: { ns: "mongoenginetest.a", v: 2, key: { _id: 1 }, background: false, unique: true, sparse: false, name: "_id_1" }
- ======================================================================
- ERROR: test_text_indexes (tests.transplant_class.<locals>.C)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/utils.py", line 42, in _inner
- return func(*args, **kwargs)
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 3204, in test_text_indexes
- info = News.objects._collection.index_information()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/queryset/manager.py", line 37, in __get__
- queryset = queryset_class(owner, owner._get_collection())
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
- cls.ensure_indexes()
- File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
- collection.create_index(fields, background=background, **opts)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1754, in create_index
- self.__create_index(keys, kwargs, session, **cmd_options)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 1656, in __create_index
- session=session)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/collection.py", line 245, in _command
- retryable_write=retryable_write)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/pool.py", line 517, in command
- collation=collation)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/network.py", line 125, in command
- parse_write_concern_error=parse_write_concern_error)
- File "/Users/tomfloyer/projects/mongoengine/venv/lib/python3.6/site-packages/pymongo-3.6.1-py3.6-macosx-10.12-x86_64.egg/pymongo/helpers.py", line 145, in _check_command_response
- raise OperationFailure(msg % errmsg, code, response)
- pymongo.errors.OperationFailure: The field 'weight' is not valid for an index specification. Specification: { key: { title: "text", content: "text" }, background: false, default_language: "portuguese", weight: { title: 10, content: 2 }, name: "title_text_content_text" }
- ======================================================================
- FAIL: Ensure that bulk insert works
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 837, in test_bulk_insert
- self.assertEqual(q, 99)
- AssertionError: 1 != 99
- '1 != 99' = '%s != %s' % _common_shorten_repr(1, 99)
- '1 != 99' = self._formatMessage('1 != 99', '1 != 99')
- >> raise self.failureException('1 != 99')
- ----------------------------------------------------------------------
- Ran 803 tests in 92.076s
- FAILED (SKIP=6, errors=12, failures=1)
Advertisement
Add Comment
Please, Sign In to add comment