renamed decorator needs_mongodb_x in test + fixes ref to mongo 2.4 from travis files

This commit is contained in:
Bastien Gérard
2018-10-02 22:03:55 +02:00
parent 55fc04752a
commit 9b6c972e0f
10 changed files with 31 additions and 38 deletions

View File

@@ -25,7 +25,7 @@ from mongoengine.queryset import NULLIFY, Q
from mongoengine.context_managers import switch_db, query_counter
from mongoengine import signals
from tests.utils import needs_mongodb_v26
from tests.utils import requires_mongodb_gte_26
TEST_IMAGE_PATH = os.path.join(os.path.dirname(__file__),
'../fields/mongoengine.png')
@@ -840,7 +840,7 @@ class InstanceTest(MongoDBTestCase):
self.assertDbEqual([dict(other_doc.to_mongo()), dict(doc.to_mongo())])
@needs_mongodb_v26
@requires_mongodb_gte_26
def test_modify_with_positional_push(self):
class BlogPost(Document):
tags = ListField(StringField())
@@ -3272,7 +3272,7 @@ class InstanceTest(MongoDBTestCase):
person.update(set__height=2.0)
@needs_mongodb_v26
@requires_mongodb_gte_26
def test_push_with_position(self):
"""Ensure that push with position works properly for an instance."""
class BlogPost(Document):