do not test position push in mongodb_v2.4 #1565
This commit is contained in:
		| @@ -2,6 +2,8 @@ import unittest | ||||
|  | ||||
| from mongoengine import connect, Document, IntField, StringField, ListField | ||||
|  | ||||
| from tests.utils import needs_mongodb_v26 | ||||
|  | ||||
| __all__ = ("FindAndModifyTest",) | ||||
|  | ||||
|  | ||||
| @@ -94,6 +96,7 @@ class FindAndModifyTest(unittest.TestCase): | ||||
|         self.assertEqual(old_doc.to_mongo(), {"_id": 1}) | ||||
|         self.assertDbEqual([{"_id": 0, "value": 0}, {"_id": 1, "value": -1}]) | ||||
|  | ||||
|     @needs_mongodb_v26 | ||||
|     def test_modify_with_push(self): | ||||
|         class BlogPost(Document): | ||||
|             id = StringField(primary_key=True) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user