Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
test: skip POSIX permission-bit tests on Windows (#3200)
mercael04e696d41e7e
diff --git a/tests/unit/cli/test_openai_compatible.py b/tests/unit/cli/test_openai_compatible.pyindex daa4545fa..21d928ae0 100644--- a/tests/unit/cli/test_openai_compatible.py+++ b/tests/unit/cli/test_openai_compatible.py@@ -3,6 +3,7 @@from __future__ import annotationsimport os+import sysfrom io import StringIOfrom typing import Any@@ -100,7 +101,8 @@ def test_persist_setup_saves_endpoint_and_key_with_consent(monkeypatch: Any, tmpcontents = env_file.read_text(encoding="utf-8")assert "OPENAI_BASE_URL=http://localhost:20128/v1" in contentsassert "OPENAI_API_KEY=router-secret" in contents- assert env_file.stat().st_mode & 0o777 == 0o600+ if sys.platform != "win32":+ assert env_file.stat().st_mode & 0o777 == 0o600def test_persist_setup_no_save_key_keeps_secret_out_of_repo(diff --git a/tests/unit/test_repo_config_errors.py b/tests/unit/test_repo_config_errors.pyindex 4f4c3bcb5..0f84ee060 100644--- a/tests/unit/test_repo_config_errors.py+++ b/tests/unit/test_repo_config_errors.py@@ -8,6 +8,8 @@ and every run used defaults with no explanation.from __future__ import annotations+import sys+import pytestfrom repowise.core.repo_config import (@@ -59,6 +61,7 @@ def test_absent_config_is_still_an_empty_dict(tmp_path) -> None:assert load_repo_env(tmp_path) == {}[email protected](sys.platform == "win32", reason="POSIX permission bits")def test_unreadable_env_raises_typed_error(tmp_path) -> None:"""An existing-but-unreadable .env must not read as 'no keys'."""env_file = tmp_path / ".repowise" / ".env"