def test_connect_to_api(self): url = { 'term': 'bars', 'location': 'sf', 'limit': 1, } response = api_request(url_params=url) self.assertTrue(response)
def info(self): params = {'id':self.api_id} return api_request(params,path='/v2/business')
def search(self): url_params = { 'location': self.cleaned_data['location'], 'term': self.cleaned_data['term'], } return api_request(url_params)