MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_prefix_with

Method test_prefix_with

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

Source from the content-addressed store, hash-verified

90 )
91
92 def test_prefix_with(self):
93 table1 = self.tables.mytable
94
95 stmt = (
96 table1.delete()
97 .prefix_with("A", "B", dialect="mysql")
98 .prefix_with("C", "D")
99 )
100
101 self.assert_compile(stmt, "DELETE C D FROM mytable")
102
103 self.assert_compile(
104 stmt, "DELETE A B C D FROM mytable", dialect=mysql.dialect()
105 )
106
107 def test_alias(self):
108 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