(self, pair=None, *args, **kwargs)
| 163 | db.test.insert_many([{} for _ in range(10)]) |
| 164 | |
| 165 | def create_pool(self, pair=None, *args, **kwargs): |
| 166 | if pair is None: |
| 167 | pair = (client_context.host, client_context.port) |
| 168 | # Start the pool with the correct ssl options. |
| 169 | pool_options = client_context.client._topology_settings.pool_options |
| 170 | kwargs["ssl_context"] = pool_options._ssl_context |
| 171 | kwargs["tls_allow_invalid_hostnames"] = pool_options.tls_allow_invalid_hostnames |
| 172 | kwargs["server_api"] = pool_options.server_api |
| 173 | pool = Pool(pair, PoolOptions(*args, **kwargs)) |
| 174 | pool.ready() |
| 175 | return pool |
| 176 | |
| 177 | |
| 178 | class TestPooling(_TestPoolingBase): |
no test coverage detected