Return the minimum min_size supported by the pool class.
(pool_cls, num=1)
| 797 | |
| 798 | |
| 799 | def min_size(pool_cls, num=1): |
| 800 | """Return the minimum min_size supported by the pool class.""" |
| 801 | if pool_cls is pool.AsyncConnectionPool: |
| 802 | return num |
| 803 | elif pool_cls is pool.AsyncNullConnectionPool: |
| 804 | return 0 |
| 805 | else: |
| 806 | assert False, pool_cls |
| 807 | |
| 808 | |
| 809 | def delay_connection(monkeypatch, sec): |
no outgoing calls
no test coverage detected