Skip to content

Commit a20b578

Browse files
committed
Sort broken links when calling assert_no_404_errors()
1 parent 3f21508 commit a20b578

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4646,6 +4646,7 @@ def assert_no_404_errors(self, multithreaded=True, timeout=None):
46464646
broken_links.append(link)
46474647
self.__requests_timeout = None # Reset the requests.get() timeout
46484648
if len(broken_links) > 0:
4649+
broken_links = sorted(broken_links)
46494650
bad_links_str = "\n".join(broken_links)
46504651
if len(broken_links) == 1:
46514652
self.fail("Broken link detected:\n%s" % bad_links_str)

0 commit comments

Comments
 (0)