MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / require_libmongocrypt_min

Method require_libmongocrypt_min

test/__init__.py:509–520  ·  view source on GitHub ↗
(self, *ver)

Source from the content-addressed store, hash-verified

507 )
508
509 def require_libmongocrypt_min(self, *ver):
510 other_version = Version(*ver)
511 if not _HAVE_PYMONGOCRYPT:
512 version = Version.from_string("0.0.0")
513 else:
514 from pymongocrypt import libmongocrypt_version
515
516 version = Version.from_string(libmongocrypt_version())
517 return self._require(
518 lambda: version >= other_version,
519 "Libmongocrypt version must be at least %s" % str(other_version),
520 )
521
522 def require_pymongocrypt_min(self, *ver):
523 other_version = Version(*ver)

Callers

nothing calls this directly

Calls 3

_requireMethod · 0.95
VersionClass · 0.90
from_stringMethod · 0.80

Tested by

no test coverage detected