Skip to content
Snippets Groups Projects
Commit cd82ee49 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

test_urls: Always print the HTTP status code for each URL


It can be useful to figure out what goes wrong.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 88c2c3be
No related branches found
No related tags found
1 merge request!278Speedup test_urls
......@@ -113,7 +113,7 @@ for url in urls:
if not status:
broken.append(url)
print(url, "OK" if status else "FAIL", f"{end - start:0.4f}s")
print(url, "OK" if status else "FAIL", resp.status_code if resp else "-", f"{end - start:0.4f}s")
print(f"Found {len(broken)} broken URLs in {len(urls)} tested:")
for b in broken:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment