MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_text_w_quotes

Method test_text_w_quotes

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

Source from the content-addressed store, hash-verified

62 )
63
64 def test_text_w_quotes(self):
65 m = MetaData()
66 t = Table("t", m, Column("x", Integer, server_default=text("5 ' 8")))
67 self.assert_compile(
68 CreateTable(t), "CREATE TABLE t (x INTEGER DEFAULT 5 ' 8)"
69 )
70
71 def test_literal_binds_w_quotes(self):
72 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