MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_next_sequence_value

Method test_next_sequence_value

test/sql/test_compiler.py:6240–6249  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6238 )
6239
6240 def test_next_sequence_value(self):
6241 # using descriptive text that is intentionally not compatible
6242 # with any particular backend, since all backends have different
6243 # syntax
6244
6245 seq = Sequence("my_sequence")
6246
6247 eq_ignore_whitespace(
6248 str(seq.next_value()), "<next sequence value: my_sequence>"
6249 )
6250
6251 def test_returning(self):
6252 stmt = table1.insert().returning(table1.c.myid)

Callers

nothing calls this directly

Calls 3

next_valueMethod · 0.95
SequenceClass · 0.90
eq_ignore_whitespaceFunction · 0.90

Tested by

no test coverage detected