MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_in

Method test_in

test/sql/test_operators.py:249–261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

247 )
248
249 def test_in(self):
250 left = column("left")
251 assert left.comparator.operate(operators.in_op, [1, 2, 3]).compare(
252 BinaryExpression(
253 left,
254 BindParameter(
255 "left", value=[1, 2, 3], unique=True, expanding=True
256 ),
257 operators.in_op,
258 type_=sqltypes.BOOLEANTYPE,
259 )
260 )
261 self._loop_test(operators.in_op, [1, 2, 3])
262
263 def test_not_in(self):
264 left = column("left")

Callers

nothing calls this directly

Calls 6

_loop_testMethod · 0.95
columnFunction · 0.90
BindParameterClass · 0.90
BinaryExpressionClass · 0.85
compareMethod · 0.45
operateMethod · 0.45

Tested by

no test coverage detected