tests/_helpers.py
def fetch_tbl_rows(tbl_name, db_conn):
    """Helper function to query a table and return the number of rows and values."""
    with db_conn, db_conn.cursor() as cursor:
        cursor.execute(sql.SQL("""SELECT * FROM {0}""".format(tbl_name)))
        return cursor.rowcount, cursor.fetchall()
Helper function to query a table and return the number of rows and values.
Helper function to query a table and return the number of rows and values.
Helper function to query a table and return the number of rows and values .
def fetch_tbl_rows(tbl_name, db_conn):
    with db_conn, db_conn.cursor() as cursor:
        cursor.execute(sql.SQL("""SELECT * FROM {0}""".format(tbl_name)))
        return cursor.rowcount, cursor.fetchall()
def fetch_tbl_rows ( tbl_name , db_conn ) : with db_conn , db_conn . cursor ( ) as cursor : cursor . execute ( sql . SQL ( """SELECT * FROM {0}""" . format ( tbl_name ) ) ) return cursor . rowcount , cursor . fetchall ( )
Helper function to query a table and return the number of rows and values.
Helper function to query a table and return the number of rows and values .
"""Helper function to query a table and return the number of rows and values."""
tbl_name
db_conn