MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / status

Method status

test/engine/test_pool.py:1041–1047  ·  view source on GitHub ↗
(pool)

Source from the content-addressed store, hash-verified

1039 p = self._queuepool_fixture(pool_size=3, max_overflow=-1)
1040
1041 def status(pool):
1042 return (
1043 pool.size(),
1044 pool.checkedin(),
1045 pool.overflow(),
1046 pool.checkedout(),
1047 )
1048
1049 c1 = p.connect()
1050 self.assert_(status(p) == (3, 0, -2, 1))

Callers 2

regularFunction · 0.45
mainFunction · 0.45

Calls 4

sizeMethod · 0.80
checkedinMethod · 0.80
overflowMethod · 0.80
checkedoutMethod · 0.80

Tested by

no test coverage detected