We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf5a99a commit 12d6ae5Copy full SHA for 12d6ae5
1 file changed
tests/test_utils.py
@@ -1,5 +1,7 @@
1
"""Tests for utility functions."""
2
3
+from urllib.parse import parse_qs, urlparse
4
+
5
from bookmark_checker.core.utils import canonicalize_url, domain_from_url, normalize_whitespace
6
7
@@ -81,8 +83,6 @@ def test_all_tracking_params(self) -> None:
81
83
result = canonicalize_url(url)
82
84
# Check that param is not in the query string (not just anywhere in URL)
85
# Parse the result to check query parameters
- from urllib.parse import urlparse, parse_qs
-
86
parsed = urlparse(result)
87
query_params = parse_qs(parsed.query)
88
# Check that the tracking param is not in the query string
0 commit comments