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

Method test_lastrow_accessor_four_a

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

Source from the content-addressed store, hash-verified

305 argnames="implicit_returning",
306 )
307 def test_lastrow_accessor_four_a(
308 self, metadata, connection, implicit_returning
309 ):
310 self._test_lastrow_accessor(
311 connection,
312 Table(
313 "t4",
314 metadata,
315 Column(
316 "id",
317 Integer,
318 normalize_sequence(config, Sequence("t4_id_seq")),
319 primary_key=True,
320 ),
321 Column("foo", String(30)),
322 implicit_returning=implicit_returning,
323 ),
324 {"foo": "hi"},
325 {"id": 1, "foo": "hi"},
326 )
327
328 @testing.combinations(
329 (True, testing.requires.insert_returning),

Callers

nothing calls this directly

Calls 6

TableClass · 0.90
ColumnClass · 0.90
normalize_sequenceFunction · 0.90
SequenceClass · 0.90
StringClass · 0.90

Tested by

no test coverage detected