MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_execute_next_value

Method test_execute_next_value

test/sql/test_sequences.py:186–191  ·  view source on GitHub ↗

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

(self, connection)

Source from the content-addressed store, hash-verified

184 self._assert_seq_result(connection.scalar(s))
185
186 def test_execute_next_value(self, connection):
187 """test func.next_value().execute()/.scalar() works
188 with connectionless execution."""
189
190 s = normalize_sequence(config, Sequence("my_sequence"))
191 self._assert_seq_result(connection.scalar(s.next_value()))
192
193 def test_execute_optional_next_value(self, connection):
194 """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