Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sqlalchemy/sqlalchemy
/ connect
Method
connect
test/engine/test_reconnect.py:939–944 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
937
)
938
939
def
connect():
940
while
True:
941
yield
Mock(
942
spec=[
"cursor"
,
"commit"
,
"rollback"
,
"close"
],
943
cursor=Mock(side_effect=cursor()),
944
)
945
946
return
Mock(
947
Error=DBAPIError,
Callers
15
_pool_fixture
Method · 0.45
test_ping_not_on_first_connect
Method · 0.45
test_ping_not_on_reconnect
Method · 0.45
test_connect_across_restart
Method · 0.45
test_handle_error_sets_disconnect
Method · 0.45
test_raise_db_is_stopped
Method · 0.45
test_waits_til_exec_wo_ping_db_is_stopped
Method · 0.45
test_waits_til_exec_wo_ping_db_is_restarted
Method · 0.45
test_pre_ping_weakref_finalizer
Method · 0.45
test_reconnect
Method · 0.45
test_invalidate_on_execute_trans
Method · 0.45
test_invalidate_on_commit_trans
Method · 0.45
Calls
1
cursor
Function · 0.70
Tested by
no test coverage detected