Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

Fix broken tests

Louis Choquel9f6f9d1285a9
diff --git a/pipelex/libraries/pipelines/documents.plx b/pipelex/libraries/pipelines/documents.plx
index 374b62e2c..9f1b15d1d 100644
--- a/pipelex/libraries/pipelines/documents.plx
+++ b/pipelex/libraries/pipelines/documents.plx
@@ -13,7 +13,7 @@ TextAndImagesContent = "A content that comprises text and images where the text
[pipe.ocr_page_contents_from_pdf]
type = "PipeOcr"
definition = "Extract page contents from a PDF document"
-inputs = { ocr_input = "PDF" }
+inputs = { document = "PDF" }
output = "Page"
page_images = true
page_views = false
@@ -22,7 +22,7 @@ ocr = "mistral-ocr"
[pipe.ocr_page_contents_and_views_from_pdf]
type = "PipeOcr"
definition = "Extract page contents from a PDF document as well as full page views"
-inputs = { ocr_input = "PDF" }
+inputs = { document = "PDF" }
output = "Page"
page_images = true
page_views = true
diff --git a/tests/integration/pipelex/test_data.py b/tests/integration/pipelex/test_data.py
index 626479b56..16b415911 100644
--- a/tests/integration/pipelex/test_data.py
+++ b/tests/integration/pipelex/test_data.py
@@ -59,7 +59,7 @@ class PipeTestCases:
content=ImageContent(url=URL_IMG_FASHION_PHOTO_1),
)
SIMPLE_STUFF_PDF = StuffFactory.make_stuff(
- name="arbitrary_name",
+ name="document",
concept=ConceptFactory.make_native_concept(native_concept_data=NATIVE_CONCEPTS_DATA[NativeConceptEnum.PDF]),
content=PDFContent(url=PDFTestCases.DOCUMENT_URLS[0]),
)