Guest User

Untitled

a guest
May 6th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.83 KB | None | 0 0
  1. ======================================================================
  2. ERROR: test_dynamic_fields_class (tests.transplant_class.<locals>.C)
  3. ----------------------------------------------------------------------
  4. Traceback (most recent call last):
  5. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/fields/fields.py", line 3650, in test_dynamic_fields_class
  6. doc.save()
  7. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 370, in save
  8. self.ensure_indexes()
  9. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 852, in ensure_indexes
  10. collection = cls._get_collection()
  11. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
  12. cls.ensure_indexes()
  13. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
  14. collection.create_index(fields, background=background, **opts)
  15. 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
  16. self.__create_index(keys, kwargs, session, **cmd_options)
  17. 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
  18. session=session)
  19. 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
  20. retryable_write=retryable_write)
  21. 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
  22. collation=collation)
  23. 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
  24. parse_write_concern_error=parse_write_concern_error)
  25. 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
  26. raise OperationFailure(msg % errmsg, code, response)
  27. 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" }
  28.  
  29. ======================================================================
  30. ERROR: test_dynamic_fields_embedded_class (tests.transplant_class.<locals>.C)
  31. ----------------------------------------------------------------------
  32. Traceback (most recent call last):
  33. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/fields/fields.py", line 3666, in test_dynamic_fields_embedded_class
  34. Doc(my_id=1, embed_me=Embed(field_1="hello"), field_x="x").save()
  35. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 370, in save
  36. self.ensure_indexes()
  37. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 852, in ensure_indexes
  38. collection = cls._get_collection()
  39. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
  40. cls.ensure_indexes()
  41. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
  42. collection.create_index(fields, background=background, **opts)
  43. 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
  44. self.__create_index(keys, kwargs, session, **cmd_options)
  45. 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
  46. session=session)
  47. 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
  48. retryable_write=retryable_write)
  49. 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
  50. collation=collation)
  51. 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
  52. parse_write_concern_error=parse_write_concern_error)
  53. 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
  54. raise OperationFailure(msg % errmsg, code, response)
  55. 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" }
  56.  
  57. ======================================================================
  58. ERROR: test_hint (tests.transplant_class.<locals>.C)
  59. ----------------------------------------------------------------------
  60. Traceback (most recent call last):
  61. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/document/indexes.py", line 566, in test_hint
  62. self.assertEqual(BlogPost.objects.hint([('ZZ', 1)]).count(), 10)
  63. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/queryset/queryset.py", line 133, in count
  64. return super(QuerySet, self).count(with_limit_and_skip)
  65. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/queryset/base.py", line 389, in count
  66. return self._cursor.count(with_limit_and_skip=with_limit_and_skip)
  67. 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
  68. cmd, self.__collation, session=self.__session)
  69. 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
  70. session=session)
  71. 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
  72. retryable_write=retryable_write)
  73. 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
  74. collation=collation)
  75. 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
  76. parse_write_concern_error=parse_write_concern_error)
  77. 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
  78. raise OperationFailure(msg % errmsg, code, response)
  79. pymongo.errors.OperationFailure: error processing query: ns=mongoenginetest.blog_postTree: $and
  80. Sort: {}
  81. Proj: {}
  82. planner returned error: bad hint
  83.  
  84. ======================================================================
  85. ERROR: If you set a field as primary, then unexpected behaviour can occur.
  86. ----------------------------------------------------------------------
  87. Traceback (most recent call last):
  88. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/document/indexes.py", line 763, in test_unique_and_primary
  89. user.save()
  90. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 370, in save
  91. self.ensure_indexes()
  92. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 852, in ensure_indexes
  93. collection = cls._get_collection()
  94. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
  95. cls.ensure_indexes()
  96. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
  97. collection.create_index(fields, background=background, **opts)
  98. 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
  99. self.__create_index(keys, kwargs, session, **cmd_options)
  100. 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
  101. session=session)
  102. 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
  103. retryable_write=retryable_write)
  104. 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
  105. collation=collation)
  106. 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
  107. parse_write_concern_error=parse_write_concern_error)
  108. 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
  109. raise OperationFailure(msg % errmsg, code, response)
  110. 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" }
  111.  
  112. ======================================================================
  113. ERROR: test_bool_with_ordering (tests.transplant_class.<locals>.C)
  114. ----------------------------------------------------------------------
  115. Traceback (most recent call last):
  116. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 4991, in test_bool_with_ordering
  117. self.assertFalse('$orderby' in op['query'],
  118. KeyError: 'query'
  119.  
  120. ======================================================================
  121. ERROR: test_bool_with_ordering_from_meta_dict (tests.transplant_class.<locals>.C)
  122. ----------------------------------------------------------------------
  123. Traceback (most recent call last):
  124. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 5027, in test_bool_with_ordering_from_meta_dict
  125. self.assertFalse('$orderby' in op['query'],
  126. KeyError: 'query'
  127.  
  128. ======================================================================
  129. ERROR: Ensure that the default ordering can be cleared by calling
  130. ----------------------------------------------------------------------
  131. Traceback (most recent call last):
  132. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 1263, in test_clear_ordering
  133. q.get_ops()[0]['query']['$orderby'],
  134. KeyError: 'query'
  135.  
  136. ======================================================================
  137. ERROR: Make sure adding a comment to the query works.
  138. ----------------------------------------------------------------------
  139. Traceback (most recent call last):
  140. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 2392, in test_comment
  141. self.assertEqual(op['query']['$query'], {'age': {'$gte': 18}})
  142. KeyError: 'query'
  143.  
  144. ======================================================================
  145. ERROR: Ensure filters can be chained together.
  146. ----------------------------------------------------------------------
  147. Traceback (most recent call last):
  148. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 1164, in test_filter_chaining
  149. blog_1.save()
  150. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 370, in save
  151. self.ensure_indexes()
  152. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 852, in ensure_indexes
  153. collection = cls._get_collection()
  154. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
  155. cls.ensure_indexes()
  156. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
  157. collection.create_index(fields, background=background, **opts)
  158. 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
  159. self.__create_index(keys, kwargs, session, **cmd_options)
  160. 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
  161. session=session)
  162. 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
  163. retryable_write=retryable_write)
  164. 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
  165. collation=collation)
  166. 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
  167. parse_write_concern_error=parse_write_concern_error)
  168. 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
  169. raise OperationFailure(msg % errmsg, code, response)
  170. 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" }
  171.  
  172. ======================================================================
  173. ERROR: Ensure that Doc.objects.get doesn't use any ordering.
  174. ----------------------------------------------------------------------
  175. Traceback (most recent call last):
  176. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 1306, in test_no_ordering_for_get
  177. self.assertFalse('$orderby' in q.get_ops()[0]['query'])
  178. KeyError: 'query'
  179.  
  180. ======================================================================
  181. ERROR: test_query_reference_to_custom_pk_doc (tests.transplant_class.<locals>.C)
  182. ----------------------------------------------------------------------
  183. Traceback (most recent call last):
  184. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 4878, in test_query_reference_to_custom_pk_doc
  185. a = A.objects.create(id='custom_id')
  186. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/queryset/manager.py", line 37, in __get__
  187. queryset = queryset_class(owner, owner._get_collection())
  188. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
  189. cls.ensure_indexes()
  190. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
  191. collection.create_index(fields, background=background, **opts)
  192. 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
  193. self.__create_index(keys, kwargs, session, **cmd_options)
  194. 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
  195. session=session)
  196. 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
  197. retryable_write=retryable_write)
  198. 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
  199. collation=collation)
  200. 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
  201. parse_write_concern_error=parse_write_concern_error)
  202. 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
  203. raise OperationFailure(msg % errmsg, code, response)
  204. 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" }
  205.  
  206. ======================================================================
  207. ERROR: test_text_indexes (tests.transplant_class.<locals>.C)
  208. ----------------------------------------------------------------------
  209. Traceback (most recent call last):
  210. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/utils.py", line 42, in _inner
  211. return func(*args, **kwargs)
  212. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 3204, in test_text_indexes
  213. info = News.objects._collection.index_information()
  214. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/queryset/manager.py", line 37, in __get__
  215. queryset = queryset_class(owner, owner._get_collection())
  216. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 197, in _get_collection
  217. cls.ensure_indexes()
  218. File "/Users/tomfloyer/projects/mongoengine/build/lib/mongoengine/document.py", line 880, in ensure_indexes
  219. collection.create_index(fields, background=background, **opts)
  220. 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
  221. self.__create_index(keys, kwargs, session, **cmd_options)
  222. 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
  223. session=session)
  224. 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
  225. retryable_write=retryable_write)
  226. 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
  227. collation=collation)
  228. 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
  229. parse_write_concern_error=parse_write_concern_error)
  230. 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
  231. raise OperationFailure(msg % errmsg, code, response)
  232. 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" }
  233.  
  234. ======================================================================
  235. FAIL: Ensure that bulk insert works
  236. ----------------------------------------------------------------------
  237. Traceback (most recent call last):
  238. File "/Users/tomfloyer/projects/mongoengine/build/lib/tests/queryset/queryset.py", line 837, in test_bulk_insert
  239. self.assertEqual(q, 99)
  240. AssertionError: 1 != 99
  241. '1 != 99' = '%s != %s' % _common_shorten_repr(1, 99)
  242. '1 != 99' = self._formatMessage('1 != 99', '1 != 99')
  243. >> raise self.failureException('1 != 99')
  244.  
  245.  
  246. ----------------------------------------------------------------------
  247. Ran 803 tests in 92.076s
  248.  
  249. FAILED (SKIP=6, errors=12, failures=1)
Advertisement
Add Comment
Please, Sign In to add comment