def METHOD_NAME(
        api, api_client, db, es, users, minimal_deposit, license_record,
        deposit_url, locations, user_info, status):
    """Test deposit with custom field publishing."""
    if user_info:
        login_user_via_session(api_client, email=user_info['email'])
    # Test wrong term
    response = api_client.post(
        deposit_url, json=minimal_deposit)
    assert response.status_code == status