Skip to content

Commit 7bfa4c2

Browse files
committed
change test to hit free api instead of docker image
1 parent 4a57827 commit 7bfa4c2

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
@@ -462,14 +462,7 @@ async def mock_send(_, request: httpx.Request, **kwargs):
462462

463463

464464
@pytest.mark.parametrize("split_pdf_page", [True, False])
465-
def test_integration_split_csv_response(split_pdf_page, doc_path):
466-
try:
467-
response = requests.get("http://127.0.0.1:8000/general/docs")
468-
assert response.status_code == 200
469-
except requests.exceptions.ConnectionError:
470-
assert False, "The unstructured-api is not running on 127.0.0.1:8000"
471-
472-
client = UnstructuredClient(api_key_auth="", server_url="127.0.0.1:8000")
465+
def test_integration_split_csv_response(split_pdf_page, client, doc_path):
473466
filename = "layout-parser-paper.pdf"
474467
with open(doc_path / filename, "rb") as f:
475468
files = shared.Files(
@@ -483,7 +476,7 @@ def test_integration_split_csv_response(split_pdf_page, doc_path):
483476
split_pdf_page=split_pdf_page,
484477
)
485478
)
486-
479+
487480
resp = client.general.partition(request=req)
488481

489482
assert resp.status_code == 200

0 commit comments

Comments
 (0)