def METHOD_NAME(
    app, workflow_id, recids, server_name='http://fake.na.me',
):
    """Calls to the robotupload callback with the given recids.
    :param app: flask app to use
    :param workflow_id: id of the associated workflow.
    :param recids: list of recids to generete the fake callback data.
    :param server_name: name of the server used for the record url.
    """
    client = app.test_client()
    data = {
        "nonce": workflow_id,
        "results": [
            {
                "recid": int(recid),
                "error_message": "",
                "success": True,
                "marcxml": "fake marcxml (not really used yet anywhere)",
                "url": "%s/record/%s" % (server_name, recid),
            } for recid in recids
        ],
    }
    response = client.post(
        '/callback/workflows/robotupload',
        data=json.dumps(data),
        content_type='application/json',
    )
    assert response.status_code == 200