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

Method test_checkfirst_sequence

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

Source from the content-addressed store, hash-verified

442 )
443
444 def test_checkfirst_sequence(self, connection):
445 s = normalize_sequence(config, Sequence("my_sequence"))
446 s.create(connection, checkfirst=False)
447 assert self._has_sequence(connection, "my_sequence")
448 s.create(connection, checkfirst=True)
449 s.drop(connection, checkfirst=False)
450 assert not self._has_sequence(connection, "my_sequence")
451 s.drop(connection, checkfirst=True)
452
453 def test_checkfirst_metadata(self, connection):
454 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