Jason Cat 19befe76a6
fix(tests): stop hardcoding C: in the Windows file-URI migration tests (#6541)
The two Windows-only cases in tests/test_mcp_file_migration.py asserted a
literal "file:///C:/" / "file://C:" prefix on a path built from the pytest
temp dir. On a host whose checkout or temp dir lives on another drive both
assertions fail, so the only coverage of the drive-qualified file-URI forms
handled by _local_uri_to_virtual_path and _rewrite_local_paths_in_text never
ran there.

Derive the expected drive from the fixture path instead. The URI forms under
test are unchanged, so coverage holds on any drive.

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-10-09 17:08:56 +08:00
..