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

@@ -61,14 +61,14 @@ def _decorated_with_ver_requirement(func, version):
return _inner
def needs_mongodb_v26(func):
def requires_mongodb_gte_26(func):
"""Raise a SkipTest exception if we're working with MongoDB version
lower than v2.6.
"""
return _decorated_with_ver_requirement(func, MONGODB_26)
def needs_mongodb_v3(func):
def requires_mongodb_gte_3(func):
"""Raise a SkipTest exception if we're working with MongoDB version
lower than v3.0.
"""