@when('we connect to test database')
def step_db_connect_test(context):
    db_name = context.conf['dbname']
    context.cli.sendline('\\connect {0}'.format(db_name))
Send connect to database.
dataset/ETHPy150Open dbcli/pgcli/tests/features/steps/step_definitions.py/step_db_connect_test