def METHOD_NAME():
    setup_solr_updater()
    from openlibrary.catalog.utils import query
    # monkey-patch query to make solr-updater work with-in the process instead of making http requests.
    query.query = ol_query
    query.withKey = ol_get
    infogami.config.middleware.append(CoverstoreMiddleware)
    # Borrow code tries to find the loan-status by making a URL call
    from openlibrary.plugins.upstream import borrow
    borrow.get_loan_status = lambda resource_id: []