def test_search(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.search('aapl') tdc.searchDF('aapl')
def test_search(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.search('aapl') tdc.searchDF('aapl')