202 not 201

This commit is contained in:
phact 2025-10-13 23:34:04 -04:00
parent 612a98f083
commit 74cc7dceee

View file

@ -162,7 +162,7 @@ async def test_upload_and_search_endpoint(tmp_path: Path, disable_langflow_inges
}
upload_resp = await client.post("/router/upload_ingest", files=files)
body = upload_resp.json()
assert upload_resp.status_code == 201, upload_resp.text
assert upload_resp.status_code == 202, upload_resp.text
assert body.get("status") in {"indexed", "unchanged"}
assert isinstance(body.get("id"), str)