From: jazzthief Date: Wed, 1 Feb 2023 11:46:32 +0000 (+0100) Subject: Add tests for bitwise not in different contexts X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98b5518d1a6aec1ade9349065278505f37c0c58b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Add tests for bitwise not in different contexts --- diff --git a/test/sql/test_operators.py b/test/sql/test_operators.py index 176d270fd6..10228af388 100644 --- a/test/sql/test_operators.py +++ b/test/sql/test_operators.py @@ -4541,7 +4541,15 @@ class AnyAllTest(fixtures.TestBase, testing.AssertsCompiledSQL): class BitOpTest(fixtures.TestBase, testing.AssertsCompiledSQL): __dialect__ = "default" - def test_compile_not(self): + def test_compile_not_column_lvl(self): + c = column("c", Integer) + + self.assert_compile( + select(c.bitwise_not()), + "SELECT ~c", + ) + + def test_compile_not_colexpr_lvl(self): c = column("c", Integer) self.assert_compile(