We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef1e585 commit 3f4f0d7Copy full SHA for 3f4f0d7
tripy/tests/test_ux.py
@@ -54,7 +54,10 @@ def test_links_valid(self, readme):
54
continue
55
56
if link.startswith("https://"):
57
- assert requests.get(link).status_code == 200
+ # Separating the requests.get(link) into a separate step since otherwise the
58
+ # pytest backtrace becomes unreadably large.
59
+ link_status = requests.get(link).status_code
60
+ assert link_status == 200, f"Broken link: {link}"
61
else:
62
assert os.path.sep * 2 not in link, f"Duplicate slashes break links in GitHub. Link was: {link}"
63
SOURCE_TAG = "source:"
0 commit comments