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

Method test_lastrow_accessor_four

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

Source from the content-addressed store, hash-verified

275 argnames="implicit_returning",
276 )
277 def test_lastrow_accessor_four(
278 self, metadata, connection, implicit_returning
279 ):
280 self._test_lastrow_accessor(
281 connection,
282 Table(
283 "t4",
284 metadata,
285 Column(
286 "id",
287 Integer,
288 normalize_sequence(
289 config, Sequence("t4_id_seq", optional=True)
290 ),
291 primary_key=True,
292 ),
293 Column("foo", String(30), primary_key=True),
294 Column("bar", String(30), server_default="hi"),
295 implicit_returning=implicit_returning,
296 ),
297 {"foo": "hi", "id": 1},
298 {"id": 1, "foo": "hi", "bar": "hi"},
299 )
300
301 @testing.requires.sequences
302 @testing.combinations(

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