Skip to content

Commit

Permalink
Convert AngelList to use the Status Code detection method. The site g…
Browse files Browse the repository at this point in the history
…ives a clean 404 error. Add to tests.
  • Loading branch information
hoadlck committed Jan 30, 2019
1 parent 89787b1 commit 8a82d88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions data.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"urlMain": "https://www.academia.edu/"
},
"AngelList": {
"errorMsg": "We couldn't find what you were looking for.",
"errorType": "message",
"errorType": "status_code",
"rank": 3469,
"url": "https://angel.co/{}",
"urlMain": "https://angel.co/"
Expand Down
4 changes: 2 additions & 2 deletions tests/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_coverage_false_via_status(self):
"""

self.username_check(['noonewouldeverusethis7'],
["Academia.edu", "9GAG", "About.me"
["Academia.edu", "9GAG", "About.me", "AngelList"
],
exist_check=False
)
Expand All @@ -180,7 +180,7 @@ def test_coverage_true_via_status(self):
"""

self.username_check(['blue'],
["Academia.edu", "9GAG", "About.me"
["Academia.edu", "9GAG", "About.me", "AngelList"
],
exist_check=True
)
Expand Down

0 comments on commit 8a82d88

Please sign in to comment.