def METHOD_NAME(app):
    last_trending_date = int(BASE_TIME.timestamp())
    last_block_date = int(datetime(2012, 3, 16, 0, 16).timestamp())
    redis_conn = get_redis()
    set_last_trending_datetime(redis_conn, last_trending_date)
    with app.app_context():
        db = get_db()
    web3 = MockWeb3({"timestamp": last_block_date})
    # Add some users to the db so we have blocks
    entities = {
        "users": [{}] * 24,
    }
    populate_mock_db(db, entities)
    _, min_datetime = get_should_update_trending(db, web3, redis_conn, 60 * 15)
    assert min_datetime != None
    # Result is rounded
    assert datetime.fromtimestamp(min_datetime) == datetime(2012, 3, 16, 0, 15)