Skip to content

Commit e1441db

Browse files
committed
🎨 Format Python code with Black
1 parent aad9cd0 commit e1441db

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/curl_tests.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ def test(
146146
retried = 0
147147
while code is None or code in {502, 503, 504}:
148148
time.sleep(retried * 5)
149-
code, content, effective_url = curl(
150-
full_url, post=post, use_cookies=cookies
151-
)
149+
code, content, effective_url = curl(full_url, post=post, use_cookies=cookies)
152150
retried += 1
153151
if retried > 3:
154152
break
@@ -165,8 +163,8 @@ def test(
165163
content = content.get_text().strip() if content else ""
166164
content = re.sub(r"[\t\n\s]{3,}", "\n\n", content)
167165

168-
base_tag = html.find('base')
169-
base = base_tag['href'] if base_tag else ''
166+
base_tag = html.find("base")
167+
base = base_tag["href"] if base_tag else ""
170168

171169
errors = []
172170
if expect_effective_url is None and "/yunohost/sso" in effective_url:

0 commit comments

Comments
 (0)