MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_checkfirst_sequence

Method test_checkfirst_sequence

test/sql/test_sequences.py:438–445  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

436 )
437
438 def test_checkfirst_sequence(self, connection):
439 s = normalize_sequence(config, Sequence("my_sequence"))
440 s.create(connection, checkfirst=False)
441 assert self._has_sequence(connection, "my_sequence")
442 s.create(connection, checkfirst=True)
443 s.drop(connection, checkfirst=False)
444 assert not self._has_sequence(connection, "my_sequence")
445 s.drop(connection, checkfirst=True)
446
447 def test_checkfirst_metadata(self, connection):
448 m = MetaData()

Callers

nothing calls this directly

Calls 5

_has_sequenceMethod · 0.95
normalize_sequenceFunction · 0.90
SequenceClass · 0.90
createMethod · 0.45
dropMethod · 0.45

Tested by

no test coverage detected