Skip to content

Commit 12d6ae5

Browse files
committed
Fix ruff E402: move import to top of file in test_utils.py
1 parent bf5a99a commit 12d6ae5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Tests for utility functions."""
22

3+
from urllib.parse import parse_qs, urlparse
4+
35
from bookmark_checker.core.utils import canonicalize_url, domain_from_url, normalize_whitespace
46

57

@@ -81,8 +83,6 @@ def test_all_tracking_params(self) -> None:
8183
result = canonicalize_url(url)
8284
# Check that param is not in the query string (not just anywhere in URL)
8385
# Parse the result to check query parameters
84-
from urllib.parse import urlparse, parse_qs
85-
8686
parsed = urlparse(result)
8787
query_params = parse_qs(parsed.query)
8888
# Check that the tracking param is not in the query string

0 commit comments

Comments
 (0)