Skip to content

Commit

Permalink
Skip test for OS different from Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinovsky committed Oct 28, 2024
1 parent c470dd0 commit 2619509
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/components/config/test_lean_config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# limitations under the License.

import os
import sys
from pathlib import Path
from typing import Optional
from unittest import mock
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 2619509

Please sign in to comment.