From: Daniele Varrazzo Date: Sat, 13 Aug 2022 21:42:05 +0000 (+0200) Subject: test: add missing asserts X-Git-Tag: 3.1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4841d40f34a47a77a1d240804e4ef1ba275a2c35;p=thirdparty%2Fpsycopg.git test: add missing asserts --- diff --git a/tests/test_client_cursor.py b/tests/test_client_cursor.py index 42242f655..b79c0360a 100644 --- a/tests/test_client_cursor.py +++ b/tests/test_client_cursor.py @@ -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 diff --git a/tests/test_client_cursor_async.py b/tests/test_client_cursor_async.py index 35156b64d..d3816754e 100644 --- a/tests/test_client_cursor_async.py +++ b/tests/test_client_cursor_async.py @@ -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 diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py index 3a239e55b..afd035afb 100644 --- a/tests/test_pipeline.py +++ b/tests/test_pipeline.py @@ -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 diff --git a/tests/test_pipeline_async.py b/tests/test_pipeline_async.py index 0119aae94..354e641a3 100644 --- a/tests/test_pipeline_async.py +++ b/tests/test_pipeline_async.py @@ -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