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

Method require_no_auth

test/__init__.py:541–547  ·  view source on GitHub ↗

Run a test only if the server is running without auth enabled.

(self, func)

Source from the content-addressed store, hash-verified

539 )
540
541 def require_no_auth(self, func):
542 """Run a test only if the server is running without auth enabled."""
543 return self._require(
544 lambda: not self.auth_enabled,
545 "Authentication must not be enabled on the server",
546 func=func,
547 )
548
549 def require_no_fips(self, func):
550 """Run a test only if the host does not have FIPS enabled."""

Callers

nothing calls this directly

Calls 1

_requireMethod · 0.95

Tested by

no test coverage detected