MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_insert_keys

Method test_insert_keys

test/orm/dml/test_bulk.py:511–519  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

509 )
510
511 def test_insert_keys(self):
512 asserter = self._test_insert(self.classes.PersonKeys)
513 asserter.assert_(
514 CompiledSQL(
515 "INSERT INTO people_keys (person_id, name) "
516 "VALUES (:id, :personname)",
517 [{"id": 5, "personname": "thename"}],
518 )
519 )
520
521 def test_insert_attrs(self):
522 asserter = self._test_insert(self.classes.PersonAttrs)

Callers

nothing calls this directly

Calls 3

_test_insertMethod · 0.95
CompiledSQLClass · 0.90
assert_Method · 0.45

Tested by

no test coverage detected