MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_prefix_with

Method test_prefix_with

test/sql/test_delete.py:94–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 )
93
94 def test_prefix_with(self):
95 table1 = self.tables.mytable
96
97 stmt = (
98 table1.delete()
99 .prefix_with("A", "B", dialect="mysql")
100 .prefix_with("C", "D")
101 )
102
103 self.assert_compile(stmt, "DELETE C D FROM mytable")
104
105 self.assert_compile(
106 stmt, "DELETE A B C D FROM mytable", dialect=mysql.dialect()
107 )
108
109 def test_alias(self):
110 table1 = self.tables.mytable

Callers

nothing calls this directly

Calls 4

prefix_withMethod · 0.80
assert_compileMethod · 0.80
deleteMethod · 0.45
dialectMethod · 0.45

Tested by

no test coverage detected