"""Suite-wide isolation from services that happen to run on the test host. A store built without an explicit provider_runtime reads os.environ, and the LLM client defaults to Ollama on 127.0.0.1:11434. With a local Ollama running, those tests made real calls and three test_http_app specs failed on socket timeouts - an air-gapped project's suite depended on the *absence* of a local service. Point the default at a port nothing listens on; tests that exercise the LLM pass their own env and fake transport and are unaffected. """ from __future__ import annotations import pytest _DEAD_OLLAMA = "http://127.0.0.1:1" @pytest.fixture(autouse=True) def _no_local_ollama(monkeypatch: pytest.MonkeyPatch) -> None: monkeypatch.setenv("OLLAMA_BASE_URL", _DEAD_OLLAMA)