File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def __init__(self,
6767 service_name = display_name .replace (' ' , '_' ).lower ()
6868 config = read_from_env_variables (service_name )
6969 if config .get ('url' ):
70- self .url = config .get ('url' )
70+ self .service_url = config .get ('url' )
7171 if config .get ('disable_ssl' ):
7272 self .disable_ssl_verification = config .get ('disable_ssl' )
7373
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ def test_iam():
142142 os .environ ['WATSON_URL' ] = 'https://gateway-s.watsonplatform.net/watson/api'
143143 os .environ ['WATSON_DISABLE_SSL' ] = 'False'
144144 service = AnyServiceV1 ('2017-07-07' , authenticator = iam_authenticator )
145- assert service .url == 'https://gateway-s.watsonplatform.net/watson/api'
145+ assert service .service_url == 'https://gateway-s.watsonplatform.net/watson/api'
146146 del os .environ ['IBM_CREDENTIALS_FILE' ]
147147 del os .environ ['WATSON_URL' ]
148148 del os .environ ['WATSON_DISABLE_SSL' ]
@@ -162,7 +162,7 @@ def test_iam():
162162 status = 200 )
163163 responses .add (
164164 responses .GET ,
165- url = 'https://gateway.watsonplatform.net/test /api' ,
165+ url = 'https://gateway-s .watsonplatform.net/watson /api' ,
166166 body = json .dumps ({
167167 "foobar" : "baz"
168168 }),
You can’t perform that action at this time.
0 commit comments