MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / connection

Method connection

test/dialect/postgresql/test_dialect.py:789–800  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

787
788 @config.fixture()
789 def connection(self):
790 opts = dict(self.options)
791 opts["use_reaper"] = False
792 eng = engines.testing_engine(options=opts)
793
794 conn = eng.connect()
795 trans = conn.begin()
796 yield conn
797 if trans.is_active:
798 trans.rollback()
799 conn.close()
800 eng.dispose()
801
802 @classmethod
803 def define_tables(cls, metadata):

Callers 15

scoped_session.pyFile · 0.45
test_exec_optionsFunction · 0.45
async_test_exec_optionsFunction · 0.45
test_expressionMethod · 0.45
test_basicMethod · 0.45
test_sequence_executeMethod · 0.45
test_deleteMethod · 0.45
test_flushMethod · 0.45
test_refreshMethod · 0.45
test_invalidateMethod · 0.45

Calls 6

testing_engineMethod · 0.80
connectMethod · 0.45
beginMethod · 0.45
rollbackMethod · 0.45
closeMethod · 0.45
disposeMethod · 0.45

Tested by

no test coverage detected