MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_string_w_quotes

Method test_string_w_quotes

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

Source from the content-addressed store, hash-verified

48 )
49
50 def test_string_w_quotes(self):
51 m = MetaData()
52 t = Table("t", m, Column("x", Integer, server_default="5'6"))
53 self.assert_compile(
54 CreateTable(t), "CREATE TABLE t (x INTEGER DEFAULT '5''6')"
55 )
56
57 def test_text(self):
58 m = MetaData()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected