Skip to content

Commit 7a3a636

Browse files
committed
fix tests
1 parent a42c39c commit 7a3a636

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

samples/openapi3/client/petstore/python-pydantic-v1/tests/test_api_exception.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,22 @@
99
$ pytest
1010
"""
1111

12-
import os
13-
import sys
1412
import unittest
1513

1614
import petstore_api
15+
from petstore_api import Configuration
1716
from petstore_api.rest import ApiException
1817

1918
from .util import id_gen
2019

20+
HOST = 'http://localhost/v2'
2121

2222
class ApiExceptionTests(unittest.TestCase):
2323

2424
def setUp(self):
25-
self.api_client = petstore_api.ApiClient()
25+
config = Configuration()
26+
config.host = HOST
27+
self.api_client = petstore_api.ApiClient(config)
2628
self.pet_api = petstore_api.PetApi(self.api_client)
2729
self.setUpModels()
2830

0 commit comments

Comments
 (0)