MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _assert_seq_result

Method _assert_seq_result

test/sql/test_sequences.py:153–157  ·  view source on GitHub ↗

asserts return of next_value is an int

(self, ret)

Source from the content-addressed store, hash-verified

151 cls.seq.drop(testing.db)
152
153 def _assert_seq_result(self, ret):
154 """asserts return of next_value is an int"""
155
156 assert isinstance(ret, int)
157 assert ret >= testing.db.dialect.default_sequence_base
158
159 def test_execute(self, connection):
160 s = normalize_sequence(config, Sequence("my_sequence"))

Calls

no outgoing calls

Tested by

no test coverage detected