Convert Codementor 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 110b93a757
commit 26ef2e1b9b

@ -132,8 +132,7 @@
"urlMain": "https://www.codecademy.com/" "urlMain": "https://www.codecademy.com/"
}, },
"Codementor": { "Codementor": {
"errorMsg": "404", "errorType": "status_code",
"errorType": "message",
"rank": 12456, "rank": 12456,
"url": "https://www.codementor.io/{}", "url": "https://www.codementor.io/{}",
"urlMain": "https://www.codementor.io/" "urlMain": "https://www.codementor.io/"

@ -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" "Codecademy", "Codementor"
], ],
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" "Codecademy", "Codementor"
], ],
exist_check=True exist_check=True
) )

Loading…
Cancel
Save