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

Method _assert_seq_result

test/sql/test_sequences.py:159–163  ·  view source on GitHub ↗

asserts return of next_value is an int

(self, ret)

Source from the content-addressed store, hash-verified

157 cls.seq.drop(testing.db)
158
159 def _assert_seq_result(self, ret):
160 """asserts return of next_value is an int"""
161
162 assert isinstance(ret, int)
163 assert ret >= testing.db.dialect.default_sequence_base
164
165 def test_execute(self, connection):
166 s = normalize_sequence(config, Sequence("my_sequence"))

Calls

no outgoing calls

Tested by

no test coverage detected