MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / require_no_fips

Method require_no_fips

test/__init__.py:549–553  ·  view source on GitHub ↗

Run a test only if the host does not have FIPS enabled.

(self, func)

Source from the content-addressed store, hash-verified

547 )
548
549 def require_no_fips(self, func):
550 """Run a test only if the host does not have FIPS enabled."""
551 return self._require(
552 lambda: not self.fips_enabled, "Test cannot run on a FIPS-enabled host", func=func
553 )
554
555 def require_replica_set(self, func: Any) -> Any:
556 """Run a test only if the client is connected to a replica set."""

Callers

nothing calls this directly

Calls 1

_requireMethod · 0.95

Tested by

no test coverage detected