tests/_helpers.py
def import_data(importer, table_name, row_count, conn, logger):
    """Function to import data in to the database."""
    importer.import_data()
    with conn, conn.cursor() as cursor:
        cursor.execute('SELECT COUNT(*) FROM {0}'.format(table_name))
        result = cursor.fetchone()
        assert result[0] == row_count
Function to import data in to the database.
Function to import data in to the database.
Function to import data in to the database .
def import_data(importer, table_name, row_count, conn, logger):
    importer.import_data()
    with conn, conn.cursor() as cursor:
        cursor.execute('SELECT COUNT(*) FROM {0}'.format(table_name))
        result = cursor.fetchone()
        assert result[0] == row_count
def import_data ( importer , table_name , row_count , conn , logger ) : importer . import_data ( ) with conn , conn . cursor ( ) as cursor : cursor . execute ( 'SELECT COUNT(*) FROM {0}' . format ( table_name ) ) result = cursor . fetchone ( ) assert result [ 0 ] == row_count
Function to import data in to the database.
Function to import data in to the database .
"""Function to import data in to the database."""
importer
table_name
row_count
conn
logger