MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_implicit_pk_inline

Method test_implicit_pk_inline

test/sql/test_insert_exec.py:700–707  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

698 @testing.fails_if(testing.requires.sequences)
699 @testing.requires.emulated_lastrowid
700 def test_implicit_pk_inline(self, connection):
701 t = self._fixture()
702 self._test(
703 connection,
704 t.insert().inline().values(data="data", x=5),
705 (testing.db.dialect.default_sequence_base, "data", 5),
706 inserted_primary_key=(),
707 )
708
709 @testing.requires.database_discards_null_for_autoincrement
710 def test_explicit_null_pk_values_db_ignores_it(self, connection):

Callers

nothing calls this directly

Calls 5

_fixtureMethod · 0.95
_testMethod · 0.95
valuesMethod · 0.45
inlineMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected