From 26195090fe74f0b7b4967670e5d37d50ccea137b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Andr=C3=A9s=20Marino=20Rojas?= <47573394+Marinovsky@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:33:21 -0500 Subject: [PATCH] Skip test for OS different from Windows --- tests/components/config/test_lean_config_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/components/config/test_lean_config_manager.py b/tests/components/config/test_lean_config_manager.py index 8cad8e00..aeea14dd 100644 --- a/tests/components/config/test_lean_config_manager.py +++ b/tests/components/config/test_lean_config_manager.py @@ -12,6 +12,7 @@ # limitations under the License. import os +import sys from pathlib import Path from typing import Optional from unittest import mock @@ -100,6 +101,9 @@ def test_get_known_lean_config_path_with_duplicated_paths() -> None: assert manager.get_known_lean_config_paths() == [Path.cwd() / "custom-lean.json"] +@pytest.mark.skipif( + sys.platform !="win32", reason="Custom config path is only valid for Windows." +) def test_get_known_lean_config_path_normalizes_path_and_case() -> None: custom_config_path = Path.cwd() / "/folder/../custom-lean.json/" custom_config_path.touch()