MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_pool_args

Method test_pool_args

test/engine/test_parseconnect.py:941–964  ·  view source on GitHub ↗
(self, mock_create)

Source from the content-addressed store, hash-verified

939 mock_create.assert_called_once_with("sqlite://", _initialize=False)
940
941 def test_pool_args(self, mock_create):
942 create_pool_from_url(
943 "sqlite://",
944 logging_name="foo",
945 echo=True,
946 timeout=42,
947 recycle=22,
948 reset_on_return=True,
949 pre_ping=True,
950 use_lifo=True,
951 foo=99,
952 )
953 mock_create.assert_called_once_with(
954 "sqlite://",
955 pool_logging_name="foo",
956 echo_pool=True,
957 pool_timeout=42,
958 pool_recycle=22,
959 pool_reset_on_return=True,
960 pool_pre_ping=True,
961 pool_use_lifo=True,
962 foo=99,
963 _initialize=False,
964 )
965
966 def test_pool_creation(self):
967 pp = create_pool_from_url("sqlite://")

Callers

nothing calls this directly

Calls 1

create_pool_from_urlFunction · 0.90

Tested by

no test coverage detected