File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,11 @@ class BaseService(object):
39
39
def __init__ (self ,
40
40
service_url = None ,
41
41
authenticator = None ,
42
- disable_ssl_verification = False ,
43
- display_name = None ):
42
+ disable_ssl_verification = False ):
44
43
"""
45
- :attr str url : The url for service api calls
44
+ :attr str service_url : The url for service api calls
46
45
:attr Authenticator authenticator: The authenticator for authentication
47
46
:attr bool disable_ssl_verification: enables/ disables ssl verification
48
- :attr str display_name the name used for mapping services in environment file
49
47
"""
50
48
self .service_url = service_url
51
49
self .http_config = {}
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ def __init__(self,
24
24
self ,
25
25
service_url = service_url ,
26
26
authenticator = authenticator ,
27
- disable_ssl_verification = disable_ssl_verification ,
28
- display_name = 'ibm Watson' )
27
+ disable_ssl_verification = disable_ssl_verification )
29
28
self .version = version
30
29
31
30
def op_with_path_params (self , path0 , path1 ):
@@ -419,7 +418,7 @@ def test_json():
419
418
assert req .get ('data' ) == "{\" hello\" : \" world\" }"
420
419
421
420
def test_service_url_not_set ():
422
- service = BaseService (service_url = '' , authenticator = NoAuthAuthenticator (), display_name = 'Watson' )
421
+ service = BaseService (service_url = '' , authenticator = NoAuthAuthenticator ())
423
422
with pytest .raises (ValueError ) as err :
424
423
service .prepare_request ('POST' , url = '' )
425
424
assert str (err .value ) == 'The service_url is required'
You can’t perform that action at this time.
0 commit comments