MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_lastrow_accessor_one

Method test_lastrow_accessor_one

test/sql/test_insert_exec.py:200–219  ·  view source on GitHub ↗
(
        self, metadata, connection, implicit_returning
    )

Source from the content-addressed store, hash-verified

198 argnames="implicit_returning",
199 )
200 def test_lastrow_accessor_one(
201 self, metadata, connection, implicit_returning
202 ):
203 self._test_lastrow_accessor(
204 connection,
205 Table(
206 "t1",
207 metadata,
208 Column(
209 "id",
210 Integer,
211 primary_key=True,
212 test_needs_autoincrement=True,
213 ),
214 Column("foo", String(30), primary_key=True),
215 implicit_returning=implicit_returning,
216 ),
217 {"foo": "hi"},
218 {"id": 1, "foo": "hi"},
219 )
220
221 @testing.requires.supports_autoincrement_w_composite_pk
222 @testing.combinations(

Callers

nothing calls this directly

Calls 4

TableClass · 0.90
ColumnClass · 0.90
StringClass · 0.90

Tested by

no test coverage detected