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

thomashebrard13391f7696a0
diff --git a/tests/unit/pipelex/core/test_data/pipes/operators/llm/pipe_llm.py b/tests/unit/pipelex/core/test_data/pipes/operators/llm/pipe_llm.py
index fa4fc9c17..fa7738b65 100644
--- a/tests/unit/pipelex/core/test_data/pipes/operators/llm/pipe_llm.py
+++ b/tests/unit/pipelex/core/test_data/pipes/operators/llm/pipe_llm.py
@@ -1,3 +1,4 @@
+# ruff: noqa: E501
from pipelex.core.bundles.pipelex_bundle_blueprint import PipelexBundleBlueprint
from pipelex.core.concepts.concept_native import NativeConceptEnum
from pipelex.core.pipes.pipe_input_blueprint import InputRequirementBlueprint
@@ -119,7 +120,6 @@ Extract all articles/items from this invoice text: $extracted_text. For each ite
},
),
)
-
# PipeLLM with multiple outputs (nb_output)
PIPE_LLM_MULTIPLE_OUTPUTS = (
"pipe_llm_multiple_outputs",
diff --git a/tests/unit/pipelex/tools/templating/test_template_preprocessor.py b/tests/unit/pipelex/tools/templating/test_template_preprocessor.py
index 23ae4d0d7..d9e630593 100644
--- a/tests/unit/pipelex/tools/templating/test_template_preprocessor.py
+++ b/tests/unit/pipelex/tools/templating/test_template_preprocessor.py
@@ -1,3 +1,4 @@
+from pipelex import pretty_print
from pipelex.tools.templating.template_preprocessor import preprocess_template
@@ -139,6 +140,8 @@ Optional notes:
"""Test multiple @variable patterns with trailing dots."""
template = "Extract all articles from this invoice text: @invoice_text. Process the items: @item_list."
result = preprocess_template(template)
- expected = """Extract all articles from this invoice text: {{ invoice_text|tag("invoice_text") }}.
- Process the items: {{ item_list|tag("item_list") }}."""
+ expected = """Extract all articles from this invoice text: {{ invoice_text|tag("invoice_text") }}. Process the items: {{ item_list|tag("item_list") }}.""" #noqa: E501
+
+ pretty_print(result, title="result")
+ pretty_print(expected, title="expected")
assert result == expected