MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_like_ops

Method test_like_ops

test/sql/test_query.py:200–214  ·  view source on GitHub ↗
(self, connection, expr, result)

Source from the content-addressed store, hash-verified

198 argnames="expr,result",
199 )
200 def test_like_ops(self, connection, expr, result):
201 users = self.tables.users
202 connection.execute(
203 users.insert(),
204 [
205 {"user_id": 1, "user_name": "apples"},
206 {"user_id": 2, "user_name": "oranges"},
207 {"user_id": 3, "user_name": "bananas"},
208 {"user_id": 4, "user_name": "legumes"},
209 {"user_id": 5, "user_name": "hi % there"},
210 ],
211 )
212
213 expr = resolve_lambda(expr, users=users)
214 eq_(connection.execute(expr).fetchall(), result)
215
216 @testing.requires.mod_operator_as_percent_sign
217 @testing.emits_warning(".*now automatically escapes.*")

Callers

nothing calls this directly

Calls 5

resolve_lambdaFunction · 0.90
eq_Function · 0.90
executeMethod · 0.45
insertMethod · 0.45
fetchallMethod · 0.45

Tested by

no test coverage detected