We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a42c39c commit 7a3a636Copy full SHA for 7a3a636
samples/openapi3/client/petstore/python-pydantic-v1/tests/test_api_exception.py
@@ -9,20 +9,22 @@
9
$ pytest
10
"""
11
12
-import os
13
-import sys
14
import unittest
15
16
import petstore_api
+from petstore_api import Configuration
17
from petstore_api.rest import ApiException
18
19
from .util import id_gen
20
+HOST = 'http://localhost/v2'
21
22
class ApiExceptionTests(unittest.TestCase):
23
24
def setUp(self):
25
- self.api_client = petstore_api.ApiClient()
+ config = Configuration()
26
+ config.host = HOST
27
+ self.api_client = petstore_api.ApiClient(config)
28
self.pet_api = petstore_api.PetApi(self.api_client)
29
self.setUpModels()
30
0 commit comments