MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / _inner

Function _inner

tests/utils.py:82–88  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

80
81 @functools.wraps(func)
82 def _inner(*args, **kwargs):
83 mongodb_v = get_mongodb_version()
84 if oper(mongodb_v, mongo_version_req):
85 return func(*args, **kwargs)
86 else:
87 pretty_version = ".".join(str(n) for n in mongo_version_req)
88 pytest.skip(f"Needs MongoDB {oper.__name__} v{pretty_version}")
89
90 return _inner

Callers

nothing calls this directly

Calls 3

get_mongodb_versionFunction · 0.90
joinMethod · 0.80
skipMethod · 0.80

Tested by

no test coverage detected