From dd78a6b1dba715435062a5a8bcc33670534b4bbe Mon Sep 17 00:00:00 2001 From: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com> Date: Sun, 11 Oct 2026 17:34:25 +0100 Subject: [PATCH] test: don't require a live Ollama server in test_configure_native_lm (CI has none) --- tests/test_configure_native_lm.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_configure_native_lm.py b/tests/test_configure_native_lm.py index f3eb2af..1a9bfac 100644 --- a/tests/test_configure_native_lm.py +++ b/tests/test_configure_native_lm.py @@ -16,7 +16,12 @@ def setup_lm(self, **params): self.calls.append(params) -def test_configure_native_lm_uses_playbook_model(tmp_path: Path): +def test_configure_native_lm_uses_playbook_model(tmp_path: Path, monkeypatch): + # CI has no Ollama server; the reachability probe is covered elsewhere. + monkeypatch.setattr( + "superoptix.runners.dspy_runner.ensure_local_model_reachable", + lambda *a, **k: None, + ) playbook = tmp_path / "p.yaml" playbook.write_text( "spec:\n language_model:\n provider: ollama\n model: qwen2.5:1.5b\n"