fix: skip Unix permission test on Windows (#648)

This commit is contained in:
Stark 2026-07-12 00:35:18 +05:00 • committed by 0xallam
parent d6cefc176a
commit f6f1963859

View file

@ -3,6 +3,7 @@
from __future__ import annotations
import json
import os
from typing import TYPE_CHECKING
import pytest
@ -199,6 +200,7 @@ def test_persist_current_writes_env_block(tmp_path: Path, monkeypatch: pytest.Mo
}
@pytest.mark.skipif(os.name == "nt", reason="Unix file permissions not supported on Windows")
def test_persist_current_sets_0600_mode(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setenv("STRIX_LLM", "persisted-model")
target = tmp_path / "cli-config.json"