MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_negate_operators_3

Method test_negate_operators_3

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

Source from the content-addressed store, hash-verified

3074 )
3075
3076 def test_negate_operators_3(self):
3077 self.assert_compile(
3078 self.table1.select().where(
3079 (self.table1.c.myid != 12)
3080 & ~(self.table1.c.name.between("jack", "john"))
3081 ),
3082 "SELECT mytable.myid, mytable.name FROM "
3083 "mytable WHERE mytable.myid != :myid_1 AND "
3084 "mytable.name NOT BETWEEN :name_1 AND :name_2",
3085 )
3086
3087 def test_negate_operators_4(self):
3088 self.assert_compile(

Callers

nothing calls this directly

Calls 4

assert_compileMethod · 0.80
whereMethod · 0.45
selectMethod · 0.45
betweenMethod · 0.45

Tested by

no test coverage detected