Skip to content

Commit

Permalink
Add coverage for passing encoded SplitResult to create a URL (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Oct 21, 2024
1 parent ed2d648 commit bbb8257
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -1967,6 +1967,11 @@ def test_split_result_non_decoded():
URL(SplitResult("http", "example.com", "path", "qs", "frag"))


def test_split_result_encoded():
url = URL(SplitResult("http", "example.com", "path", "qs", "frag"), encoded=True)
assert str(url) == "http://example.com/path?qs#frag"


def test_human_repr():
url = URL("http://бажан:пароль@хост.домен:8080/шлях/сюди?арг=вал#фраг")
s = url.human_repr()
Expand Down

0 comments on commit bbb8257

Please sign in to comment.