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 test
thomashebrard042fa319200c
diff --git a/.badges/tests.json b/.badges/tests.jsonindex 83a5045e6..06318eeaa 100644--- a/.badges/tests.json+++ b/.badges/tests.json@@ -1,7 +1,7 @@{"schemaVersion": 1,"label": "tests",- "message": "4192",+ "message": "4193","color": "blue","cacheSeconds": 300}\ No newline at end of filediff --git a/tests/unit/pipelex/core/concepts/structure_generation/test_structure_generator_wrapping.py b/tests/unit/pipelex/core/concepts/structure_generation/test_structure_generator_wrapping.pyindex f911318a5..d771ef485 100644--- a/tests/unit/pipelex/core/concepts/structure_generation/test_structure_generator_wrapping.py+++ b/tests/unit/pipelex/core/concepts/structure_generation/test_structure_generator_wrapping.py@@ -12,8 +12,8 @@ Generated structure files must stay under the project's ruff line-length limitFor short descriptions, both fall back to the compact single-line form."""-import shutilimport subprocess # noqa: S404+import sysfrom pathlib import Pathimport pytest@@ -131,9 +131,10 @@ class TestStructureGeneratorWrapping:the chunks being collapsed back into a single line. Un-indented chunks under ahanging-indent paren block get joined by ruff format, defeating the wrap."""- ruff_bin = shutil.which("ruff")- if ruff_bin is None:- pytest.skip("ruff not on PATH")+ try:+ subprocess.run([sys.executable, "-m", "ruff", "--version"], check=True, capture_output=True) # noqa: S603+ except (subprocess.CalledProcessError, FileNotFoundError):+ pytest.skip("ruff not available in current interpreter")long_description = ("Whether a factual answer could in principle be derived from documents. False for counterfactual, opinion, "@@ -154,7 +155,13 @@ class TestStructureGeneratorWrapping:target = tmp_path / "generated.py"target.write_text(code)- subprocess.run([ruff_bin, "format", str(target)], check=True, capture_output=True) # noqa: S603+ # Use --isolated so ruff ignores any pyproject.toml in the path above tmp_path,+ # and run via the current interpreter to ensure we use the project's pinned ruff.+ subprocess.run( # noqa: S603+ [sys.executable, "-m", "ruff", "format", "--isolated", str(target)],+ check=True,+ capture_output=True,+ )formatted = target.read_text()# The implicit-string-concat must still be present after formatting — i.e. ruff