]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Remove NOT from binary op test
authorjazzthief <mynameisyegor@gmail.com>
Thu, 19 Jan 2023 16:58:17 +0000 (17:58 +0100)
committerjazzthief <mynameisyegor@gmail.com>
Thu, 19 Jan 2023 16:58:17 +0000 (17:58 +0100)
test/sql/test_operators.py

index a1e5875e64fcbc244aed9657b199684cc9d232e5..3424f3ab3f533ccc9733db4635e750a5d6cf725d 100644 (file)
@@ -4544,14 +4544,14 @@ class BitOpTest(fixtures.TestBase, testing.AssertsCompiledSQL):
         ("xor", operators.bitwise_xor_op, "^"),
         ("or", operators.bitwise_or_op, "|"),
         ("and", operators.bitwise_and_op, "&"),
-        ("not", operators.bitwise_not_op, "~"),
         ("lshift", operators.bitwise_lshift_op, "<<"),
         ("rshift", operators.bitwise_rshift_op, ">>"),
         id_="iaa",
     )
-    def test_default_compile(self, py_op, sql_op):
+    def test_compile_binary(self, py_op, sql_op):
         c1 = column("c1", Integer)
         c2 = column("c2", Integer)
+
         self.assert_compile(
             select(py_op(c1, c2)),
             f"SELECT c1 {sql_op} c2 AS anon_1",