def test_instrument(self, mock_rtie): from tdameritrade import TDClient tdc = TDClient(clientId=123, refreshToken='reftoken', accountIds=[1, 2]) with patch('requests.get') as m: m.return_value.status_code = 200 m.return_value.json.return_value = {'aapl': {'test': 1, 'test2': 2}} tdc.instrument('aapl') tdc.instrumentDF('aapl')
def test_instrument(self): from tdameritrade import TDClient tdc = TDClient('test', [1, 2]) with patch('requests.get') as m: m.return_value.status_code = 200 m.return_value.json.return_value = { 'aapl': { 'test': 1, 'test2': 2 } } tdc.instrument('aapl') tdc.instrumentDF('aapl')