MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_table_one_col_w_constraint

Method test_table_one_col_w_constraint

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

Source from the content-addressed store, hash-verified

6691 )
6692
6693 def test_table_one_col_w_constraint(self):
6694 m = MetaData()
6695 t1 = Table("t1", m, Column("q", Integer), CheckConstraint("a = 1"))
6696 self.assert_compile(
6697 schema.CreateTable(t1),
6698 "CREATE TABLE t1 (q INTEGER, CHECK (a = 1))",
6699 )
6700
6701 def test_schema_translate_map_table(self):
6702 m = MetaData()

Callers

nothing calls this directly

Calls 5

MetaDataClass · 0.90
TableClass · 0.90
ColumnClass · 0.90
CheckConstraintClass · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected