Skip to content

Commit a0b3bf7

Browse files
committed
test: add URL validation with UTF-8 query parameters
Add test to verify that URL validator correctly handles UTF-8 characters in query parameters, such as special characters like 'ñ' in search queries.
1 parent 8f437fe commit a0b3bf7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""HA-01. Test URL validation with UTF-8 query parameters."""
2+
3+
# local
4+
from validators import url
5+
6+
7+
def test_url_with_utf8_query_parameter():
8+
"""Test that URL validator accepts UTF-8 characters in query parameters."""
9+
result = url("https://domain.com/search?q=caña")
10+
11+
assert result is True

0 commit comments

Comments
 (0)