style: Run pre-commit

This commit is contained in:
Joakim Saario 2022-08-21 22:08:29 +02:00
parent b47882b114
commit 9c6c13b78a
No known key found for this signature in database
GPG key ID: D8B76D271B7BD453
235 changed files with 7180 additions and 5628 deletions

View file

@ -22,7 +22,7 @@ def test_number_format():
def test_extend_query():
""" Test extension of a query via extend_query. """
"""Test extension of a query via extend_query."""
query = {"a": "b"}
extended = filters.extend_query(query, ("a", "c"), ("b", "d"))
assert extended.get("a") == "c"
@ -30,7 +30,7 @@ def test_extend_query():
def test_to_qs():
""" Test conversion from a query dictionary to a query string. """
"""Test conversion from a query dictionary to a query string."""
query = {"a": "b", "c": [1, 2, 3]}
qs = filters.to_qs(query)
assert qs == "a=b&c=1&c=2&c=3"