MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_pool_creation

Method test_pool_creation

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

Source from the content-addressed store, hash-verified

964 )
965
966 def test_pool_creation(self):
967 pp = create_pool_from_url("sqlite://")
968 engine_pool = create_engine("sqlite://").pool
969 eq_(pp.__class__, engine_pool.__class__)
970 pp = create_pool_from_url("sqlite://", pre_ping=True)
971 is_true(pp._pre_ping)
972 is_false(isinstance(pp, NullPool))
973
974 def test_pool_creation_custom_class(self):
975 pp = create_pool_from_url("sqlite://", poolclass=NullPool)

Callers

nothing calls this directly

Calls 5

create_pool_from_urlFunction · 0.90
create_engineFunction · 0.90
eq_Function · 0.90
is_trueFunction · 0.90
is_falseFunction · 0.90

Tested by

no test coverage detected