MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _assert_fn

Method _assert_fn

test/engine/test_execute.py:324–326  ·  view source on GitHub ↗
(self, x, value=None)

Source from the content-addressed store, hash-verified

322 )
323
324 def _assert_fn(self, x, value=None):
325 with testing.db.connect() as conn:
326 eq_(conn.execute(self.table.select()).fetchall(), [(x, value)])
327
328 def test_transaction_engine_ctx_commit(self):
329 fn = self._trans_fn()

Calls 5

eq_Function · 0.90
connectMethod · 0.45
fetchallMethod · 0.45
executeMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected