MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / GetBindSession

Class GetBindSession

test/orm/test_bind.py:436–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434 canary = mock.Mock()
435
436 class GetBindSession(Session):
437 def _connection_for_bind(self, bind, **kw):
438 canary._connection_for_bind(bind, **kw)
439 return mock.Mock()
440
441 def get_bind(self, **kw):
442 canary.get_bind(**kw)
443 return Session.get_bind(self, **kw)
444
445 sess = GetBindSession(e3)
446 sess.bind_mapper(User, e1)

Callers 1

Calls

no outgoing calls

Tested by 1