From: jazzthief Date: Wed, 18 Jan 2023 09:44:40 +0000 (+0100) Subject: Add compiler test for NOT X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f22b114369a0db79a2afd2a87bb738b1966800;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Add compiler test for NOT --- diff --git a/test/sql/test_operators.py b/test/sql/test_operators.py index 305b74f677..f80be34463 100644 --- a/test/sql/test_operators.py +++ b/test/sql/test_operators.py @@ -4518,6 +4518,16 @@ class AnyAllTest(fixtures.TestBase, testing.AssertsCompiledSQL): class BitOpTest(fixtures.TestBase, testing.AssertsCompiledSQL): + __dialect__ = "default" + + def test_compile_not(self): + c = column("c", Integer) + + self.assert_compile( + select(operators.bitwise_not_op(c)), + "SELECT ~c", + ) + @testing.combinations( ("xor", operators.bitwise_xor_op, "^"), ("or", operators.bitwise_or_op, "|"),