def METHOD_NAME(app):
    """Happy path test: test that we get all valid listens from prior year"""
    # setup
    with app.app_context():
        db = get_db()
    date = datetime.now()
    setup_trending(db, date)
    # run
    with db.scoped_session() as session:
        res = get_listen_counts(session, "year", None, 10, 0)
    # validate
    expected = [
        {"track_id": 0, "listens": 2, "created_at": date},
        {"track_id": 1, "listens": 2, "created_at": date},
        {"track_id": 2, "listens": 3, "created_at": date},
    ]
    validate_results(res, expected)