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

Method _engine_fixture

test/engine/test_execute.py:1063–1070  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1061
1062class MockStrategyTest(fixtures.TestBase):
1063 def _engine_fixture(self):
1064 buf = StringIO()
1065
1066 def dump(sql, *multiparams, **params):
1067 buf.write(str(sql.compile(dialect=engine.dialect)))
1068
1069 engine = create_mock_engine("postgresql+psycopg2://", executor=dump)
1070 return engine, buf
1071
1072 def test_sequence_not_duped(self):
1073 engine, buf = self._engine_fixture()

Callers 1

Calls 1

create_mock_engineFunction · 0.90

Tested by

no test coverage detected