def run(): res = BaruwaAPIClient(self.api_token, self.url, **self.client_opts) func(res)
def setUp(self): """Setup API""" self.mock_request = mock.MagicMock() self.mock_response = mock.Mock(spec=Response) self.api = BaruwaAPIClient(API_TOKEN, API_URL)