Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed May 2, 2024
1 parent 7a5c6f3 commit 0dad0d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/models/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def test_url_leading_dot_prefix_on_relative_url():
#
# Percent-encoding in `params={}` should match browser form behavior.


def test_param_with_space():
# Params passed as form key-value pairs should be escaped.
url = httpx.URL("http://webservice", params={"u": "with spaces"})
Expand Down Expand Up @@ -319,6 +320,7 @@ def test_param_with_existing_escape_requires_encoding():
#
# Percent-encoding in `url={}` should match browser URL bar behavior.


def test_query_with_existing_percent_encoding():
# Valid percent encoded sequences should not be double encoded.
url = httpx.URL("http://webservice?u=phrase%20with%20spaces")
Expand Down

0 comments on commit 0dad0d9

Please sign in to comment.