diff --git a/tests/unit/python/utils/docker/test_healthcheck.py b/tests/unit/python/utils/docker/test_healthcheck.py index bf3cd097a7..333cfca3c0 100644 --- a/tests/unit/python/utils/docker/test_healthcheck.py +++ b/tests/unit/python/utils/docker/test_healthcheck.py @@ -136,7 +136,7 @@ class TestOtherFlavors(unittest.TestCase): subprocess.run(["bash", "-c", script], check=True) self.assertEqual( b"GET /health HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n", - sent.read_bytes(), + sent.read_bytes(), # nocheck: cache-read - bash writes this file inside the test, so a cached read would answer with the previous run's bytes ) def test_http_status_demands_a_2xx_or_3xx_status_line(self): diff --git a/tests/unit/python/utils/inventory/test_tools_model.py b/tests/unit/python/utils/inventory/test_tools_model.py index ddc2cdd30c..0d684ae0e9 100644 --- a/tests/unit/python/utils/inventory/test_tools_model.py +++ b/tests/unit/python/utils/inventory/test_tools_model.py @@ -4,9 +4,8 @@ from __future__ import annotations import unittest -import yaml - from utils import PROJECT_ROOT +from utils.cache.yaml import load_yaml_any from utils.inventory.tools import LANE_MODEL_ALIAS, render OLLAMA_ROLE = "svc-ai-ollama" @@ -23,7 +22,7 @@ class TestLaneModel(unittest.TestCase): the probe expects another never reports ready and redeploys on every call. """ - rendered = yaml.safe_load(render(PROJECT_ROOT, ["en"]).read_text("utf-8")) + rendered = load_yaml_any(str(render(PROJECT_ROOT, ["en"]))) ollama = rendered["applications"][OLLAMA_ROLE]["services"]["ollama"] self.assertEqual(