Skip to content

Commit

Permalink
Convert Behance to use the Status Code detection method. The site giv…
Browse files Browse the repository at this point in the history
…es a clean 404 error. Add to tests.
  • Loading branch information
hoadlck committed Jan 30, 2019
1 parent 65e3820 commit 08ac008
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 @@ -68,8 +68,7 @@
"urlMain": "https://basecamp.com/"
},
"Behance": {
"errorMsg": "Oops! We can\u2019t find that page.",
"errorType": "message",
"errorType": "status_code",
"rank": 394,
"url": "https://www.behance.net/{}",
"urlMain": "https://www.behance.net/"
Expand Down
4 changes: 2 additions & 2 deletions tests/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_coverage_false_via_status(self):

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

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

0 comments on commit 08ac008

Please sign in to comment.