Skip to content

Commit 2bcc8a3

Browse files
committed
change test to hit free api instead of docker image
1 parent 43ae6af commit 2bcc8a3

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Diff for: _test_unstructured_client/integration/test_decorators.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,7 @@ async def mock_send(_, request: httpx.Request, **kwargs):
378378

379379

380380
@pytest.mark.parametrize("split_pdf_page", [True, False])
381-
def test_integration_split_csv_response(split_pdf_page, doc_path):
382-
try:
383-
response = requests.get("http://127.0.0.1:8000/general/docs")
384-
assert response.status_code == 200
385-
except requests.exceptions.ConnectionError:
386-
assert False, "The unstructured-api is not running on 127.0.0.1:8000"
387-
388-
client = UnstructuredClient(api_key_auth="", server_url="127.0.0.1:8000")
381+
def test_integration_split_csv_response(split_pdf_page, client, doc_path):
389382
filename = "layout-parser-paper.pdf"
390383
with open(doc_path / filename, "rb") as f:
391384
files = shared.Files(
@@ -399,7 +392,7 @@ def test_integration_split_csv_response(split_pdf_page, doc_path):
399392
split_pdf_page=split_pdf_page,
400393
)
401394
)
402-
395+
403396
resp = client.general.partition(request=req)
404397

405398
assert resp.status_code == 200

0 commit comments

Comments
 (0)