Convert Designspiration to use the Status Code detection method. The site gives a clean 404 error. Add to tests.

pull/156/head
Christopher K. Hoadley 6 years ago
parent 26ef2e1b9b
commit 6fc5c131db

@ -197,10 +197,9 @@
"urlMain": "https://www.dailymotion.com/" "urlMain": "https://www.dailymotion.com/"
}, },
"Designspiration": { "Designspiration": {
"errorMsg": "Content Not Found", "errorType": "status_code",
"errorType": "message",
"rank": 24722, "rank": 24722,
"url": "https://www.designspiration.net/{}", "url": "https://www.designspiration.net/{}/",
"urlMain": "https://www.designspiration.net/" "urlMain": "https://www.designspiration.net/"
}, },
"DeviantART": { "DeviantART": {

@ -160,7 +160,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest):
self.username_check(['noonewouldeverusethis7'], self.username_check(['noonewouldeverusethis7'],
["Academia.edu", "9GAG", "About.me", "AngelList", ["Academia.edu", "9GAG", "About.me", "AngelList",
"BLIP.fm", "Bandcamp", "Behance", "BuzzFeed", "BLIP.fm", "Bandcamp", "Behance", "BuzzFeed",
"Codecademy", "Codementor" "Codecademy", "Codementor", "Designspiration"
], ],
exist_check=False exist_check=False
) )
@ -184,7 +184,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest):
self.username_check(['blue'], self.username_check(['blue'],
["Academia.edu", "9GAG", "About.me", "AngelList", ["Academia.edu", "9GAG", "About.me", "AngelList",
"BLIP.fm", "Bandcamp", "Behance", "BuzzFeed", "BLIP.fm", "Bandcamp", "Behance", "BuzzFeed",
"Codecademy", "Codementor" "Codecademy", "Codementor", "Designspiration"
], ],
exist_check=True exist_check=True
) )

Loading…
Cancel
Save