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/"
},
"Codecademy": {
"errorMsg": "404 error",
"errorType": "message",
"errorType": "status_code",
"rank": 2314,
"url": "https://www.codecademy.com/{}",
"urlMain": "https://www.codecademy.com/"

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

Loading…
Cancel
Save