def _test_service() -> SimpleService: config = ServiceConfiguration() config.uris = ["https://dummy/simple/api"] service = RequestsClient.create(SimpleService, user_agent="pytest", service_config=config) return service
def test_repr_service(): config = ServiceConfiguration() config.uris = ["http://one/", "http://two/"] service = RequestsClient.create(Service, "user-agent", config) assert ( repr(service) == "Service(requests_session=requests.Session(...), uris=['http://one/', 'http://two/'])" )
def post_service(config): return RequestsClient.create(AutoDeserializeConfirmService, 'conjure-python/0.0.0', config)
def confirm_service(config): return RequestsClient.create(AutoDeserializeConfirmService, "conjure-python/0.0.0", config)
def query_service(config): return RequestsClient.create(SingleQueryParamService, "conjure-python/0.0.0", config)
def path_service(config): return RequestsClient.create(SinglePathParamService, "conjure-python/0.0.0", config)
def header_service(config): return RequestsClient.create(SingleHeaderService, "conjure-python/0.0.0", config)
def body_service(config): return RequestsClient.create(AutoDeserializeService, 'conjure-python/0.0.0', config)