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

This commit is contained in:
Christopher K. Hoadley 2019-01-30 17:58:14 -06:00
parent 65e3820608
commit 08ac008828
2 changed files with 3 additions and 4 deletions

View file

@ -68,8 +68,7 @@
"urlMain": "https://basecamp.com/" "urlMain": "https://basecamp.com/"
}, },
"Behance": { "Behance": {
"errorMsg": "Oops! We can\u2019t find that page.", "errorType": "status_code",
"errorType": "message",
"rank": 394, "rank": 394,
"url": "https://www.behance.net/{}", "url": "https://www.behance.net/{}",
"urlMain": "https://www.behance.net/" "urlMain": "https://www.behance.net/"

View file

@ -159,7 +159,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" "BLIP.fm", "Bandcamp", "Behance"
], ],
exist_check=False exist_check=False
) )
@ -182,7 +182,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" "BLIP.fm", "Bandcamp", "Behance"
], ],
exist_check=True exist_check=True
) )