MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_not_in

Method test_not_in

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

Source from the content-addressed store, hash-verified

261 self._loop_test(operators.in_op, [1, 2, 3])
262
263 def test_not_in(self):
264 left = column("left")
265 assert left.comparator.operate(operators.not_in_op, [1, 2, 3]).compare(
266 BinaryExpression(
267 left,
268 BindParameter(
269 "left", value=[1, 2, 3], unique=True, expanding=True
270 ),
271 operators.not_in_op,
272 type_=sqltypes.BOOLEANTYPE,
273 )
274 )
275 self._loop_test(operators.not_in_op, [1, 2, 3])
276
277 def test_in_no_accept_list_of_non_column_element(self):
278 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