def test_gdst_data_no_properties(self, mocked_post): ciq_client = CapIQClient("username", "password") return_value = ciq_client.gdshv( ["TRIP"], ["IQ_CLOSEPRICE"], ["close_price"], start_date="12/19/1980", end_date="12/19/2000" ) self.assertEqual(return_value, {'TRIP:': {'close_price': '46.80'}})
def test_gdst_no_data(self, mocked_post): ciq_client = CapIQClient("username", "password") return_value = ciq_client.gdshv(["TRIP"], ["IQ_CLOSEPRICE"], ["close_price"], [{}]) self.assertEqual(return_value, {'TRIP:': {'close_price': None}})