()
| 123 | |
| 124 | |
| 125 | def test_default_max_connections(): |
| 126 | assert ConnectionPool().max_connections == 100 |
| 127 | assert AsyncConnectionPool().max_connections == 100 |
| 128 | assert Redis().connection_pool.max_connections == 100 |
| 129 | assert AsyncRedis().connection_pool.max_connections == 100 |
| 130 | |
| 131 | async_cluster_parameters = inspect.signature(AsyncRedisCluster.__init__).parameters |
| 132 | assert async_cluster_parameters["max_connections"].default == 100 |
| 133 | async_cluster_node_parameters = inspect.signature( |
| 134 | AsyncClusterNode.__init__ |
| 135 | ).parameters |
| 136 | assert async_cluster_node_parameters["max_connections"].default == 100 |
| 137 | |
| 138 | |
| 139 | def test_default_retry_config(): |
nothing calls this directly
no test coverage detected