From f609320d3c5306ee6ceae2a62b661e626a83b2c1 Mon Sep 17 00:00:00 2001 From: "Christopher K. Hoadley" Date: Wed, 30 Jan 2019 17:25:05 -0600 Subject: [PATCH] Convert Canva to the more robust Response URL detection method. Add to tests to ensure that it is covered. --- data.json | 6 +++--- tests/all.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data.json b/data.json index 4858d42a..186e2cdf 100644 --- a/data.json +++ b/data.json @@ -105,9 +105,9 @@ "url": "https://buzzfeed.com/{}", "urlMain": "https://buzzfeed.com/" }, - "Canva": { - "errorMsg": "Not found (404)", - "errorType": "message", + "Canva": { + "errorType": "response_url", + "errorUrl": "https://www.canva.com/{}", "rank": 215, "url": "https://www.canva.com/{}", "urlMain": "https://www.canva.com/" diff --git a/tests/all.py b/tests/all.py index c486c608..15f8efac 100644 --- a/tests/all.py +++ b/tests/all.py @@ -112,7 +112,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self.username_check(['noonewouldeverusethis7'], ["Pinterest", "iMGSRC.RU", "Pastebin", "WordPress", "devRant", "ImageShack", "MeetMe", - "EyeEm", "CreativeMarket", "EVE Online" + "EyeEm", "CreativeMarket", "EVE Online", "Canva" ], exist_check=False ) @@ -136,7 +136,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self.username_check(['blue'], ["Pinterest", "iMGSRC.RU", "Pastebin", "WordPress", "devRant", "ImageShack", "MeetMe", - "EyeEm", "CreativeMarket", "EVE Online" + "EyeEm", "CreativeMarket", "EVE Online", "Canva" ], exist_check=True )