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

Method require_version_max

test/__init__.py:501–507  ·  view source on GitHub ↗

Run a test only if the server version is at most ``version``.

(self, *ver)

Source from the content-addressed store, hash-verified

499 )
500
501 def require_version_max(self, *ver):
502 """Run a test only if the server version is at most ``version``."""
503 other_version = Version(*ver)
504 return self._require(
505 lambda: self.version <= other_version,
506 "Server version must be at most %s" % str(other_version),
507 )
508
509 def require_libmongocrypt_min(self, *ver):
510 other_version = Version(*ver)

Callers 1

Calls 2

_requireMethod · 0.95
VersionClass · 0.90

Tested by

no test coverage detected