Convert Codecademy 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 18:07:29 -06:00
parent 223d9716cb
commit 110b93a757
2 changed files with 5 additions and 4 deletions

View File

@ -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/"

View File

@ -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
)