MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / connection

Method connection

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

Source from the content-addressed store, hash-verified

785
786 @config.fixture()
787 def connection(self):
788 opts = dict(self.options)
789 opts["use_reaper"] = False
790 eng = engines.testing_engine(options=opts)
791
792 conn = eng.connect()
793 trans = conn.begin()
794 yield conn
795 if trans.is_active:
796 trans.rollback()
797 conn.close()
798 eng.dispose()
799
800 @classmethod
801 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