feat: Enhance URL conversion and bridge script handling for improved drag-and-drop functionality
Some checks are pending
Tests & Quality Checks / Test on Python 3.11 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.10 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-2 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-2 (push) Waiting to run
Tests & Quality Checks / Build Artifacts (push) Blocked by required conditions
Tests & Quality Checks / Build Artifacts-1 (push) Blocked by required conditions

This commit is contained in:
claudi 2026-04-14 14:12:51 +02:00
parent 9edadc2c16
commit cbd8ed0186
4 changed files with 275 additions and 37 deletions

View file

@ -1,5 +1,6 @@
"""Unit tests for URL converter."""
import os
from pathlib import Path
import pytest
@ -44,7 +45,10 @@ def test_convert_simple_url(converter):
result = converter.convert_url_to_path(url)
assert result is not None
assert str(result).endswith("test\\file.png") # Windows path separator
if os.name == "nt":
assert str(result).endswith("test\\file.png")
else:
assert str(result).endswith("test/file.png")
def test_convert_url_with_special_characters(converter):