def METHOD_NAME(client: TestClient, monkeypatch: pytest.MonkeyPatch):
    """ forecast role required for persisting a forecast """
    def mock_admin_role_function(*_, **__):
        return MockJWTDecodeWithRole('morecast2_write_forecast')
    monkeypatch.setattr(decode_fn, mock_admin_role_function)
    monkeypatch.setattr(app.routers.morecast_v2, 'get_user_forecasts_for_date', lambda *_: [])
    response = client.get(morecast_v2_get_url)
    assert response.status_code == 200