MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_recycle

Method test_recycle

test/engine/test_parseconnect.py:719–729  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

717 e.connect()
718
719 def test_recycle(self):
720 dbapi = MockDBAPI(
721 foober=12, lala=18, hoho={"this": "dict"}, fooz="somevalue"
722 )
723 e = create_engine(
724 "postgresql+psycopg2://",
725 pool_recycle=472,
726 module=dbapi,
727 _initialize=False,
728 )
729 assert e.pool._recycle == 472
730
731 def test_reset_on_return(self):
732 dbapi = MockDBAPI(

Callers

nothing calls this directly

Calls 2

create_engineFunction · 0.90
MockDBAPIFunction · 0.70

Tested by

no test coverage detected