mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
- Added CrossCliSyncPanel component for synchronizing MCP servers between Claude and Codex. - Implemented server selection, copy operations, and result handling. - Added tests for path mapping on Windows drives. - Created E2E tests for ask_question Answer Broker functionality. - Introduced MCP Tools Test Script for validating modified read_file and edit_file tools. - Updated path_mapper to ensure correct drive formatting on Windows. - Added .gitignore for ace-tool directory.
20 lines
573 B
Python
20 lines
573 B
Python
from __future__ import annotations
|
|
|
|
import platform
|
|
from pathlib import Path
|
|
|
|
from codexlens.storage.path_mapper import PathMapper
|
|
|
|
|
|
def test_denormalize_path_windows_drive_is_absolute() -> None:
|
|
if platform.system() != "Windows":
|
|
return
|
|
|
|
mapper = PathMapper(index_root=Path("C:/tmp/codexlens_indexes"))
|
|
mapped = mapper.denormalize_path("D/Claude_dms3/codex-lens/src")
|
|
|
|
assert mapped.is_absolute()
|
|
assert str(mapped).lower().startswith("d:\\") or str(mapped).lower().startswith("d:/")
|
|
assert mapped == Path("D:/Claude_dms3/codex-lens/src")
|
|
|