def settings_setup(self): endpoint = make_config() endpoint.configure( base_url = "http://127.0.0.1:5000", key = "localhost" ) requests_ex = RequestsEx(endpoint) global api api = requests_ex.get_endpoint_session('localhost')
def setUp(self): endpoint = make_config() endpoint.configure(base_url="http://127.0.0.1:5000", key="target-test") endpoint.session_configure(always_return_json=True, raise_on_http_error=True) self.requests_ex = RequestsEx(endpoint) self.api = self.requests_ex.get_endpoint_session("target-test")