MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_text

Method test_text

test/sql/test_defaults.py:57–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 )
56
57 def test_text(self):
58 m = MetaData()
59 t = Table("t", m, Column("x", Integer, server_default=text("5 + 8")))
60 self.assert_compile(
61 CreateTable(t), "CREATE TABLE t (x INTEGER DEFAULT 5 + 8)"
62 )
63
64 def test_text_w_quotes(self):
65 m = MetaData()

Callers

nothing calls this directly

Calls 6

MetaDataClass · 0.90
TableClass · 0.90
ColumnClass · 0.90
textFunction · 0.90
CreateTableClass · 0.85
assert_compileMethod · 0.80

Tested by

no test coverage detected