@@ -79,7 +79,7 @@ def test_integration_split_pdf_has_same_output_as_non_split(
7979
8080 try :
8181 resp_split = client .general .partition (
82- server_url = "localhost:8000" ,
82+ server_url = "http:// localhost:8000" ,
8383 request = req
8484 )
8585 except (HTTPValidationError , AttributeError ) as exc :
@@ -159,7 +159,7 @@ def test_integration_split_pdf_with_caching(
159159
160160 try :
161161 resp_split = client .general .partition (
162- server_url = "localhost:8000" ,
162+ server_url = "http:// localhost:8000" ,
163163 request = req
164164 )
165165 except (HTTPValidationError , AttributeError ) as exc :
@@ -176,7 +176,7 @@ def test_integration_split_pdf_with_caching(
176176 )
177177
178178 resp_single = client .general .partition (
179- server_url = "localhost:8000" ,
179+ server_url = "http:// localhost:8000" ,
180180 request = req
181181 )
182182
@@ -242,7 +242,7 @@ def test_integration_split_pdf_for_file_with_no_name():
242242 )
243243 )
244244
245- pytest .raises (ValueError , client .general .partition , request = req , server_url = "localhost:8000" )
245+ pytest .raises (ValueError , client .general .partition , request = req , server_url = "http:// localhost:8000" )
246246
247247
248248@pytest .mark .parametrize ("starting_page_number" , [1 , 100 ])
@@ -302,7 +302,7 @@ def test_integration_split_pdf_with_page_range(
302302
303303 try :
304304 resp = client .general .partition (
305- server_url = "localhost:8000" ,
305+ server_url = "http:// localhost:8000" ,
306306 request = req
307307 )
308308 except ValueError as exc :
@@ -372,7 +372,7 @@ def test_integration_split_pdf_strict_mode(
372372
373373 try :
374374 resp_split = client .general .partition (
375- server_url = "localhost:8000" ,
375+ server_url = "http:// localhost:8000" ,
376376 request = req
377377 )
378378 except (HTTPValidationError , AttributeError ) as exc :
@@ -425,7 +425,7 @@ async def mock_send(_, request: httpx.Request, **kwargs):
425425 # Assert that the SDK issues our dummy request
426426 # returned by the BeforeRequestHook
427427 nonlocal mock_endpoint_called
428- if request .url .host == "localhost" and "docs" in request .url .path :
428+ if request .url .host == "http:// localhost" and "docs" in request .url .path :
429429 mock_endpoint_called = True
430430 return Response (200 , request = request )
431431 elif "docs" in request .url .path :
@@ -485,7 +485,7 @@ async def mock_send(_, request: httpx.Request, **kwargs):
485485 )
486486
487487 res = await sdk .general .partition_async (
488- server_url = "localhost:8000" ,
488+ server_url = "http:// localhost:8000" ,
489489 request = req
490490 )
491491
0 commit comments