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

Method test_not_in

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

Source from the content-addressed store, hash-verified

250 self._loop_test(operators.in_op, [1, 2, 3])
251
252 def test_not_in(self):
253 left = column("left")
254 assert left.comparator.operate(operators.not_in_op, [1, 2, 3]).compare(
255 BinaryExpression(
256 left,
257 BindParameter(
258 "left", value=[1, 2, 3], unique=True, expanding=True
259 ),
260 operators.not_in_op,
261 type_=sqltypes.BOOLEANTYPE,
262 )
263 )
264 self._loop_test(operators.not_in_op, [1, 2, 3])
265
266 def test_in_no_accept_list_of_non_column_element(self):
267 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