def test_get_user_info_for_existing_user(refresh_db_once, db_connection_sqlalchemy): engine = db_connection_sqlalchemy user_id = sql_queries.get_user_id(engine, email='*****@*****.**', password='******') assert user_id == 1
def test_get_user_info_with_wildcard_password_results_in_no_users_found( refresh_db_once, db_connection_sqlalchemy): engine = db_connection_sqlalchemy user_id = sql_queries.get_user_id(engine, email='*****@*****.**', password='******') assert user_id is None
def test_get_user_info_for_non_existant_user(refresh_db_once, db_connection_sqlalchemy): engine = db_connection_sqlalchemy user_id = sql_queries.get_user_id(engine, email='*****@*****.**', password='******') assert user_id is None
def test_get_user_info_with_wildcard_email_address_results_in_no_users_found( refresh_db_once, db_connection_sqlalchemy): engine = db_connection_sqlalchemy user_id = sql_queries.get_user_id(engine, email='*', password='******') assert user_id is None