def set_session(): from gs_quant.session import OAuth2Session OAuth2Session.init = mock.MagicMock(return_value=None) GsSession.use(Environment.PROD, 'client_id', 'secret') PricingCache.clear() import gs_quant.markets.markets as markets markets.close_market_date = mock.MagicMock(return_value=dt.date.today())
def set_session(): from gs_quant.session import OAuth2Session OAuth2Session.init = mock.MagicMock(return_value=None) GsSession.use(Environment.PROD, 'client_id', 'secret') PricingCache.clear()