Run a test only if the client is connected to a replica set.
(self, func: Any)
| 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.""" |
| 557 | return self._require(lambda: self.is_rs, "Not connected to a replica set", func=func) |
| 558 | |
| 559 | def require_secondaries_count(self, count): |
| 560 | """Run a test only if the client is connected to a replica set that has |