def METHOD_NAME(app):
    """Test slicing by genre"""
    # 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", "Pop", 10, 0)
    # validate
    expected = [{"track_id": 1, "listens": 2, "created_at": date}]
    validate_results(res, expected)