File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
samples/client/petstore/python/tests Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -137,10 +137,18 @@ def test_separate_default_config_instances(self):
137
137
pet_api2 = petstore_api .PetApi ()
138
138
self .assertNotEqual (pet_api .api_client .configuration , pet_api2 .api_client .configuration )
139
139
140
- pet_api .api_client .configuration .host = 'somehost '
141
- pet_api2 .api_client .configuration .host = 'someotherhost '
140
+ pet_api .api_client .configuration .host = 'some_host '
141
+ pet_api2 .api_client .configuration .host = 'some_other_host '
142
142
self .assertNotEqual (pet_api .api_client .configuration .host , pet_api2 .api_client .configuration .host )
143
143
144
+ pet_api .api_client .configuration .api_key ['api_key' ] = 'some_key'
145
+ pet_api2 .api_client .configuration .api_key ['api_key' ] = 'some_other_key'
146
+ self .assertNotEqual (pet_api .api_client .configuration .api_key ['api_key' ], pet_api2 .api_client .configuration .api_key ['api_key' ])
147
+
148
+ pet_api .api_client .configuration .api_key_prefix ['prefix' ] = 'some_prefix'
149
+ pet_api2 .api_client .configuration .api_key_prefix ['prefix' ] = 'some_other_prefix'
150
+ self .assertNotEqual (pet_api .api_client .configuration .api_key_prefix ['prefix' ], pet_api2 .api_client .configuration .api_key_prefix ['prefix' ])
151
+
144
152
def test_async_request (self ):
145
153
thread = self .pet_api .add_pet (body = self .pet , async_req = True )
146
154
response = thread .get ()
You can’t perform that action at this time.
0 commit comments