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

Method test_expression_expr

test/ext/test_hybrid.py:1092–1100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1090 )
1091
1092 def test_expression_expr(self):
1093 A = self._fixture()
1094
1095 self.assert_compile(
1096 select(A.id, A.string_expr_value_syn).where(
1097 A.string_expr_value_syn == "value"
1098 ),
1099 "SELECT a.id, 'foo' FROM a WHERE 'foo' = :'foo'_1",
1100 )
1101
1102
1103class InplaceCreationTest(fixtures.TestBase, AssertsCompiledSQL):

Callers

nothing calls this directly

Calls 4

_fixtureMethod · 0.95
selectFunction · 0.90
assert_compileMethod · 0.80
whereMethod · 0.45

Tested by

no test coverage detected