""" The suite's backend globals are stubbed, not probed (T-7). `make test` promises "no external services". The session init used to run the real health probes — an HTTP round trip to whatever answers behind OLLAMA_HOST and a real Anthropic API call whenever the dev .env carries a key — so the cached globals depended on live infrastructure, and the suite flaked whenever the backend was mid-deploy. This test discriminates: under the stub the globals are always the local-first healthy state; under real probes they follow the network of the moment. """ from src.anthropic import model_selector def test_session_globals_are_deterministic(): assert model_selector._ollama_available is True assert model_selector._local_flavor == "boilerroom" assert model_selector._claude_available is False