Skip to content

Commit

Permalink
🎨 Format Python code with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin authored and OniriCorpe committed Nov 29, 2024
1 parent acfa333 commit dfbd82a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/curl_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def curl(

return (return_code, return_content, effective_url)


def validate_and_normalize(effective_url, base, uri):
parsed_domain = urlparse(effective_url)

Expand All @@ -124,6 +125,7 @@ def validate_and_normalize(effective_url, base, uri):

return True, parsed.geturl()


def test(
base_url,
path,
Expand Down Expand Up @@ -224,9 +226,7 @@ def test(
(valid, uri) = validate_and_normalize(effective_url, base, sheet)
if not valid:
continue
assets_to_check.append(
uri
)
assets_to_check.append(uri)
break

js = html.find_all("script", src=True)
Expand All @@ -242,9 +242,7 @@ def test(
(valid, uri) = validate_and_normalize(effective_url, base, js)
if not valid:
continue
assets_to_check.append(
uri
)
assets_to_check.append(uri)
break

if not assets_to_check:
Expand Down

0 comments on commit dfbd82a

Please sign in to comment.