MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_explicit_sequence

Method test_explicit_sequence

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

Source from the content-addressed store, hash-verified

561
562 @testing.requires.sequences
563 def test_explicit_sequence(self, connection):
564 t = self._fixture()
565 self._test(
566 connection,
567 t.insert().values(
568 id=func.next_value(
569 normalize_sequence(config, Sequence("t_id_seq"))
570 ),
571 data="data",
572 x=5,
573 ),
574 (testing.db.dialect.default_sequence_base, "data", 5),
575 )
576
577 def test_uppercase(self, connection):
578 t = self.tables.foo

Callers

nothing calls this directly

Calls 7

_fixtureMethod · 0.95
_testMethod · 0.95
normalize_sequenceFunction · 0.90
SequenceClass · 0.90
valuesMethod · 0.45
insertMethod · 0.45
next_valueMethod · 0.45

Tested by

no test coverage detected