Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/sherlock/commit/de0ccfebb75f903634b62d608758cfd29e66add5 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Add option to skip test if site returns error status (e.g. timeout connecting with site). This makes it easier to interpret the test results.

pull/350/head
Christopher K. Hoadley 5 years ago
parent 2c9fb4f295
commit de0ccfebb7

@ -53,6 +53,7 @@ class SherlockBaseTest(unittest.TestCase):
self.tor=False
self.unique_tor=False
self.timeout=None
self.skip_error_sites=True
return
@ -123,6 +124,16 @@ class SherlockBaseTest(unittest.TestCase):
with self.subTest(f"Checking Username '{username}' "
f"{check_type_text} on Site '{site}'"
):
if (
(self.skip_error_sites == True) and
(result['status'].status == QueryStatus.UNKNOWN)
):
#Some error connecting to site.
self.skipTest(f"Skipping Username '{username}' "
f"{check_type_text} on Site '{site}': "
f"Site returned error status."
)
self.assertEqual(result['status'].status,
exist_result_desired)

Loading…
Cancel
Save