mirror of
https://github.com/usestrix/strix.git
synced 2026-11-11 08:37:23 +00:00
fix: skip Unix permission test on Windows (#648)
This commit is contained in:
parent
d6cefc176a
commit
f6f1963859
1 changed files with 2 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue