]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
test: add missing asserts
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 13 Aug 2022 21:42:05 +0000 (23:42 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 22 Aug 2022 09:42:08 +0000 (11:42 +0200)
tests/test_client_cursor.py
tests/test_client_cursor_async.py
tests/test_pipeline.py
tests/test_pipeline_async.py

index 42242f65525472d0f0b0222702d6da667c5f686e..b79c0360af53c4e8789f9d195be6b507fc5d1a74 100644 (file)
@@ -827,6 +827,6 @@ def test_message_0x33(conn):
     conn.autocommit = True
     with conn.pipeline():
         cur = conn.execute("select 'test'")
-        cur.fetchone() == ("test",)
+        assert cur.fetchone() == ("test",)
 
     assert not notices
index 35156b64d5a255d027b3c79e1755a688b8c27141..d3816754ee82cf50e97beb4a62820893b5ba75e2 100644 (file)
@@ -699,6 +699,6 @@ async def test_message_0x33(aconn):
     await aconn.set_autocommit(True)
     async with aconn.pipeline():
         cur = await aconn.execute("select 'test'")
-        await cur.fetchone() == ("test",)
+        assert (await cur.fetchone()) == ("test",)
 
     assert not notices
index 3a239e55b1fba0a4e50f9d806c9f5d0f07b5c96d..afd035afb8616262eed1bf874841c2dac638697d 100644 (file)
@@ -503,7 +503,7 @@ def test_message_0x33(conn):
     conn.autocommit = True
     with conn.pipeline():
         cur = conn.execute("select 'test'")
-        cur.fetchone() == ("test",)
+        assert cur.fetchone() == ("test",)
 
     assert not notices
 
index 0119aae94b749b33ea643d365ad7dab02a3a310c..354e641a3a4766ab1a1df0bde428262baee91593 100644 (file)
@@ -507,7 +507,7 @@ async def test_message_0x33(aconn):
     await aconn.set_autocommit(True)
     async with aconn.pipeline():
         cur = await aconn.execute("select 'test'")
-        await cur.fetchone() == ("test",)
+        assert (await cur.fetchone()) == ("test",)
 
     assert not notices