Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sqlalchemy/sqlalchemy
/ connect
Method
connect
test/engine/test_reconnect.py:937–942 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
935
)
936
937
def
connect():
938
while
True:
939
yield
Mock(
940
spec=[
"cursor"
,
"commit"
,
"rollback"
,
"close"
],
941
cursor=Mock(side_effect=cursor()),
942
)
943
944
return
Mock(
945
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