Convert Codecademy 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 223d9716cb
commit 110b93a757

@ -126,8 +126,7 @@
"urlMain": "https://www.cloob.com/" "urlMain": "https://www.cloob.com/"
}, },
"Codecademy": { "Codecademy": {
"errorMsg": "404 error", "errorType": "status_code",
"errorType": "message",
"rank": 2314, "rank": 2314,
"url": "https://www.codecademy.com/{}", "url": "https://www.codecademy.com/{}",
"urlMain": "https://www.codecademy.com/" "urlMain": "https://www.codecademy.com/"

@ -159,7 +159,8 @@ 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"
], ],
exist_check=False exist_check=False
) )
@ -182,7 +183,8 @@ 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"
], ],
exist_check=True exist_check=True
) )

Loading…
Cancel
Save