MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_table_no_cols_w_constraint

Method test_table_no_cols_w_constraint

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

Source from the content-addressed store, hash-verified

6684 self.assert_compile(schema.CreateTable(t1), "CREATE TABLE t1 ()")
6685
6686 def test_table_no_cols_w_constraint(self):
6687 m = MetaData()
6688 t1 = Table("t1", m, CheckConstraint("a = 1"))
6689 self.assert_compile(
6690 schema.CreateTable(t1), "CREATE TABLE t1 (CHECK (a = 1))"
6691 )
6692
6693 def test_table_one_col_w_constraint(self):
6694 m = MetaData()

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected