feat(system): DPLAN-0172 Phase 3 Round 2: fix remaining 30 Windows test failures

Co-Authored-By: @devpulse <devpulse@aipass>
This commit is contained in:
AIOSAI
2026-05-10 21:30:18 -07:00
co-authored by @devpulse
parent 5fc97ce50e
commit 531e66106c
18 changed files with 61 additions and 27 deletions
@@ -180,7 +180,7 @@ def _scan_template_directory(
for item in sorted(template_dir.rglob("*")):
rel = item.relative_to(template_dir)
rel_str = str(rel)
rel_str = rel.as_posix()
# Skip excluded directories and their contents
if any(part in _SKIP_DIRS for part in rel.parts):
@@ -155,7 +155,7 @@
"content_hash": "a4cf0a8e3b4f",
"has_branch_placeholder": false
},
"f015": {
"f026": {
"path": "apps/modules/__init__.py",
"name": "__init__.py",
"content_hash": "e3b0c44298fc",
@@ -263,7 +263,7 @@
"content_hash": "28e9ae373563",
"has_branch_placeholder": false
},
"f026": {
"f015": {
"path": "apps/plugins/__init__.py",
"name": "__init__.py",
"content_hash": "e3b0c44298fc",
+2
View File
@@ -10,6 +10,7 @@
import json
import shutil
import sys
import pytest
from pathlib import Path
@@ -253,6 +254,7 @@ class TestPathContainment:
class TestAtomicWriteAndLocking:
"""Tests for atomic writes and file locking in registry operations."""
@pytest.mark.skipif(sys.platform == "win32", reason="fcntl-based locking not available on Windows")
def test_add_to_registry_creates_lock_file(self, tmp_path):
reg = tmp_path / "TEST_REGISTRY.json"
branch = tmp_path / "agent_a"