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

Method test_drop_index_exists

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

Source from the content-addressed store, hash-verified

6448 )
6449
6450 def test_drop_index_exists(self):
6451 m = MetaData()
6452 t1 = Table("t1", m, Column("q", Integer))
6453 idx = Index("my_idx", t1.c.q)
6454 self.assert_compile(
6455 schema.DropIndex(idx, if_exists=True),
6456 "DROP INDEX IF EXISTS my_idx",
6457 )
6458
6459 def test_create_table_suffix(self):
6460 class MyDialect(default.DefaultDialect):

Callers

nothing calls this directly

Calls 5

MetaDataClass · 0.90
TableClass · 0.90
ColumnClass · 0.90
IndexClass · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected