From 08ac008828b5101e1621ca46e3689a46342c6c82 Mon Sep 17 00:00:00 2001 From: "Christopher K. Hoadley" Date: Wed, 30 Jan 2019 17:58:14 -0600 Subject: [PATCH] Convert Behance 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 b2892af2..33f2798c 100644 --- a/data.json +++ b/data.json @@ -68,8 +68,7 @@ "urlMain": "https://basecamp.com/" }, "Behance": { - "errorMsg": "Oops! We can\u2019t find that page.", - "errorType": "message", + "errorType": "status_code", "rank": 394, "url": "https://www.behance.net/{}", "urlMain": "https://www.behance.net/" diff --git a/tests/all.py b/tests/all.py index b8bf309c..2758e633 100644 --- a/tests/all.py +++ b/tests/all.py @@ -159,7 +159,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self.username_check(['noonewouldeverusethis7'], ["Academia.edu", "9GAG", "About.me", "AngelList", - "BLIP.fm", "Bandcamp" + "BLIP.fm", "Bandcamp", "Behance" ], exist_check=False ) @@ -182,7 +182,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self.username_check(['blue'], ["Academia.edu", "9GAG", "About.me", "AngelList", - "BLIP.fm", "Bandcamp" + "BLIP.fm", "Bandcamp", "Behance" ], exist_check=True )