From 65e382060882fb08934ea6b6d2c8043e57443ec8 Mon Sep 17 00:00:00 2001 From: "Christopher K. Hoadley" Date: Wed, 30 Jan 2019 17:54:22 -0600 Subject: [PATCH] Convert Bandcamp to use the Status Code detection method. The site gives a clean 404 error. Add to tests. --- data.json | 3 +-- tests/all.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/data.json b/data.json index 4240426..b2892af 100644 --- a/data.json +++ b/data.json @@ -55,8 +55,7 @@ "urlMain": "https://badoo.com/" }, "Bandcamp": { - "errorMsg": "Sorry, that something isn\u2019t here", - "errorType": "message", + "errorType": "status_code", "rank": 573, "url": "https://www.bandcamp.com/{}", "urlMain": "https://www.bandcamp.com/" diff --git a/tests/all.py b/tests/all.py index a299bd3..b8bf309 100644 --- a/tests/all.py +++ b/tests/all.py @@ -159,7 +159,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self.username_check(['noonewouldeverusethis7'], ["Academia.edu", "9GAG", "About.me", "AngelList", - "BLIP.fm" + "BLIP.fm", "Bandcamp" ], exist_check=False ) @@ -182,7 +182,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self.username_check(['blue'], ["Academia.edu", "9GAG", "About.me", "AngelList", - "BLIP.fm" + "BLIP.fm", "Bandcamp" ], exist_check=True )