Skip to content

Commit

Permalink
Include test for #845
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpieters committed Apr 19, 2023
1 parent 22df0bb commit b8a0051
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_update_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ def test_update_query_with_none_arg():
assert url.update_query(None) == expected_url


def test_update_query_with_empty_dict():
url = URL("http://example.com/?foo=bar&baz=foo")
assert url.update_query({}) == url


def test_with_query_list_of_pairs():
url = URL("http://example.com")
assert str(url.with_query([("a", "1")])) == "http://example.com/?a=1"
Expand Down

0 comments on commit b8a0051

Please sign in to comment.