From 6fc5c131dbf8dd4e8406db714e16492060daee0f Mon Sep 17 00:00:00 2001 From: "Christopher K. Hoadley" Date: Wed, 30 Jan 2019 18:15:42 -0600 Subject: [PATCH] Convert Designspiration to use the Status Code detection method. The site gives a clean 404 error. Add to tests. --- data.json | 5 ++--- tests/all.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/data.json b/data.json index 0ab091b6..1ea77c5f 100644 --- a/data.json +++ b/data.json @@ -197,10 +197,9 @@ "urlMain": "https://www.dailymotion.com/" }, "Designspiration": { - "errorMsg": "Content Not Found", - "errorType": "message", + "errorType": "status_code", "rank": 24722, - "url": "https://www.designspiration.net/{}", + "url": "https://www.designspiration.net/{}/", "urlMain": "https://www.designspiration.net/" }, "DeviantART": { diff --git a/tests/all.py b/tests/all.py index d85b0ffc..c76ff2aa 100644 --- a/tests/all.py +++ b/tests/all.py @@ -160,7 +160,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self.username_check(['noonewouldeverusethis7'], ["Academia.edu", "9GAG", "About.me", "AngelList", "BLIP.fm", "Bandcamp", "Behance", "BuzzFeed", - "Codecademy", "Codementor" + "Codecademy", "Codementor", "Designspiration" ], exist_check=False ) @@ -184,7 +184,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self.username_check(['blue'], ["Academia.edu", "9GAG", "About.me", "AngelList", "BLIP.fm", "Bandcamp", "Behance", "BuzzFeed", - "Codecademy", "Codementor" + "Codecademy", "Codementor", "Designspiration" ], exist_check=True )