]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add tests for bitwise not in different contexts
authorjazzthief <mynameisyegor@gmail.com>
Wed, 1 Feb 2023 11:46:32 +0000 (12:46 +0100)
committerjazzthief <mynameisyegor@gmail.com>
Wed, 1 Feb 2023 11:46:32 +0000 (12:46 +0100)
test/sql/test_operators.py

index 176d270fd6295f156ea81e706d8e24540da230d5..10228af3889a6b9632b667c1f82822595255568b 100644 (file)
@@ -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(