From 8a82d883c62dfbe186db120ffde778cb078c63e3 Mon Sep 17 00:00:00 2001 From: "Christopher K. Hoadley" Date: Wed, 30 Jan 2019 17:49:04 -0600 Subject: [PATCH] Convert AngelList to use the Status Code detection method. The site gives a clean 404 error. Add to tests. --- data.json | 3 +-- tests/all.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/data.json b/data.json index 0908a7cb..d47cc5ce 100644 --- a/data.json +++ b/data.json @@ -25,8 +25,7 @@ "urlMain": "https://www.academia.edu/" }, "AngelList": { - "errorMsg": "We couldn't find what you were looking for.", - "errorType": "message", + "errorType": "status_code", "rank": 3469, "url": "https://angel.co/{}", "urlMain": "https://angel.co/" diff --git a/tests/all.py b/tests/all.py index 0959ca03..107ca473 100644 --- a/tests/all.py +++ b/tests/all.py @@ -158,7 +158,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): """ self.username_check(['noonewouldeverusethis7'], - ["Academia.edu", "9GAG", "About.me" + ["Academia.edu", "9GAG", "About.me", "AngelList" ], exist_check=False ) @@ -180,7 +180,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): """ self.username_check(['blue'], - ["Academia.edu", "9GAG", "About.me" + ["Academia.edu", "9GAG", "About.me", "AngelList" ], exist_check=True )