Skip to content

Commit eb2f08f

Browse files
authored
Include test for #845 (#846)
1 parent 22df0bb commit eb2f08f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_update_query.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ def test_update_query_with_none_arg():
4646
assert url.update_query(None) == expected_url
4747

4848

49+
def test_update_query_with_empty_dict():
50+
url = URL("http://example.com/?foo=bar&baz=foo")
51+
assert url.update_query({}) == url
52+
53+
4954
def test_with_query_list_of_pairs():
5055
url = URL("http://example.com")
5156
assert str(url.with_query([("a", "1")])) == "http://example.com/?a=1"

0 commit comments

Comments
 (0)