|
|
|
@ -32,6 +32,14 @@ class SherlockBaseTest(unittest.TestCase):
|
|
|
|
|
with open(data_file_path, "r", encoding="utf-8") as raw:
|
|
|
|
|
self.site_data_all = json.load(raw)
|
|
|
|
|
|
|
|
|
|
# Load excluded sites list, if any
|
|
|
|
|
excluded_sites_path = os.path.join(os.path.dirname(os.path.realpath(sherlock.__file__)), "tests/.excluded_sites")
|
|
|
|
|
try:
|
|
|
|
|
with open(excluded_sites_path, "r", encoding="utf-8") as excluded_sites_file:
|
|
|
|
|
self.excluded_sites = excluded_sites_file.read().splitlines()
|
|
|
|
|
except FileNotFoundError:
|
|
|
|
|
self.excluded_sites = []
|
|
|
|
|
|
|
|
|
|
self.verbose=False
|
|
|
|
|
self.tor=False
|
|
|
|
|
self.unique_tor=False
|
|
|
|
@ -134,6 +142,7 @@ class SherlockBaseTest(unittest.TestCase):
|
|
|
|
|
|
|
|
|
|
for site, site_data in self.site_data_all.items():
|
|
|
|
|
if (
|
|
|
|
|
(site in self.excluded_sites) or
|
|
|
|
|
(site_data["errorType"] != detect_type) or
|
|
|
|
|
(site_data.get("username_claimed") is None) or
|
|
|
|
|
(site_data.get("username_unclaimed") is None)
|
|
|
|
|