MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_insert

Method test_insert

test/sql/test_query.py:846–850  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

844 )
845
846 def test_insert(self):
847 stmt = self.tables.foo.insert().values(
848 x=bindparam("x"), data=bindparam("data")
849 )
850 self._assert_raises(stmt, {"data": "data"})
851
852 def test_select_where(self):
853 stmt = (

Callers

nothing calls this directly

Calls 4

_assert_raisesMethod · 0.95
bindparamFunction · 0.90
valuesMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected