MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_execute_next_value

Method test_execute_next_value

test/sql/test_sequences.py:180–185  ·  view source on GitHub ↗

test func.next_value().execute()/.scalar() works with connectionless execution.

(self, connection)

Source from the content-addressed store, hash-verified

178 self._assert_seq_result(connection.scalar(s))
179
180 def test_execute_next_value(self, connection):
181 """test func.next_value().execute()/.scalar() works
182 with connectionless execution."""
183
184 s = normalize_sequence(config, Sequence("my_sequence"))
185 self._assert_seq_result(connection.scalar(s.next_value()))
186
187 def test_execute_optional_next_value(self, connection):
188 """test func.next_value().execute()/.scalar() works

Callers

nothing calls this directly

Calls 5

_assert_seq_resultMethod · 0.95
normalize_sequenceFunction · 0.90
SequenceClass · 0.90
scalarMethod · 0.45
next_valueMethod · 0.45

Tested by

no test coverage detected