Skip to content

fix(test): handle Windows file URLs in marketplace resolution tests - #59

Merged
bartolli merged 1 commit into
bartolli:mainfrom
sergitorres-codere:fix/test-marketplace-windows-file-urls
Oct 29, 2025
Merged

fix(test): handle Windows file URLs in marketplace resolution tests#59
bartolli merged 1 commit into
bartolli:mainfrom
sergitorres-codere:fix/test-marketplace-windows-file-urls

Conversation

@sergitorres-codere

Copy link
Copy Markdown
Contributor

Summary

Fixes marketplace resolution tests to properly handle file:// URLs on Windows by converting backslashes to forward slashes.

Changes

  • Added path_to_file_url() helper function to convert file paths to proper file:// URLs
  • Updated install_supports_git_source_object test to use the helper
  • Updated update_external_plugin_detects_up_to_date test to use the helper

Technical Details

Windows uses backslashes (\) in file paths, which need to be converted to forward slashes (/) for file:// URLs. The helper ensures cross-platform compatibility by:

  • Converting all backslashes to forward slashes
  • Properly formatting with file:/// prefix (3 slashes) for both Unix and Windows absolute paths

Test Coverage

  • All existing tests pass on Windows
  • Fixes test failures related to file URL formatting on Windows

Related Issues

Resolves Windows-specific test failures in marketplace resolution tests

Add path_to_file_url helper to properly format file:// URLs for
cross-platform compatibility (Windows uses backslashes that need
to be converted to forward slashes in URLs).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Quick checks success

@bartolli
bartolli merged commit 89e2a56 into bartolli:main Oct 29, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants