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

Method test_lastrow_accessor_two

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

Source from the content-addressed store, hash-verified

225 argnames="implicit_returning",
226 )
227 def test_lastrow_accessor_two(
228 self, metadata, connection, implicit_returning
229 ):
230 self._test_lastrow_accessor(
231 connection,
232 Table(
233 "t2",
234 metadata,
235 Column(
236 "id",
237 Integer,
238 primary_key=True,
239 test_needs_autoincrement=True,
240 ),
241 Column("foo", String(30), primary_key=True),
242 Column("bar", String(30), server_default="hi"),
243 implicit_returning=implicit_returning,
244 ),
245 {"foo": "hi"},
246 {"id": 1, "foo": "hi", "bar": "hi"},
247 )
248
249 @testing.combinations(
250 (True, testing.requires.insert_returning),

Callers

nothing calls this directly

Calls 4

TableClass · 0.90
ColumnClass · 0.90
StringClass · 0.90

Tested by

no test coverage detected