From 9114ef63c1f91c43e43430872c28fe2dc2bb7d4b Mon Sep 17 00:00:00 2001 From: Benton Edmondson Date: Mon, 6 Jun 2022 22:48:36 -0400 Subject: [PATCH] added a limit to the number of tests run --- tests/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/tests.py b/tests/tests.py index ef82f8c..3c51ef7 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -45,6 +45,9 @@ for a_tag in soup.find_all('a'): links.append(a_tag.get("href")) + if len(links) >= 10: + break + for i, link in enumerate(links): i = str(i) print("Testing URL #" + i + ":\n" + link)