From 1902519f3780e2bf61599a27ce836d967c1e3b7b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 12 May 2026 17:48:17 -0500 Subject: [PATCH] [core] Fix Windows path separator in cache path test --- tests/unit_tests/test_compiled_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit_tests/test_compiled_config.py b/tests/unit_tests/test_compiled_config.py index 1fda7bf5bd7..89542fad797 100644 --- a/tests/unit_tests/test_compiled_config.py +++ b/tests/unit_tests/test_compiled_config.py @@ -104,9 +104,9 @@ def fresh_cache_files(tmp_path: Path) -> Path: def test_compiled_config_path_lives_alongside_sidecar(setup_core: Path) -> None: """The cache file shape is predictable from the YAML filename.""" - assert str(compiled_config_path("device.yaml")).endswith( - "storage/device.yaml.validated.yaml" - ) + path = compiled_config_path("device.yaml") + assert path.name == "device.yaml.validated.yaml" + assert path.parent.name == "storage" def test_load_compiled_config_happy_path(fresh_cache_files: Path) -> None: