Convert Canva to the more robust Response URL detection method. Add to tests to ensure that it is covered.

pull/156/head
Christopher K. Hoadley 6 years ago
parent 916fdd0603
commit f609320d3c

@ -106,8 +106,8 @@
"urlMain": "https://buzzfeed.com/" "urlMain": "https://buzzfeed.com/"
}, },
"Canva": { "Canva": {
"errorMsg": "Not found (404)", "errorType": "response_url",
"errorType": "message", "errorUrl": "https://www.canva.com/{}",
"rank": 215, "rank": 215,
"url": "https://www.canva.com/{}", "url": "https://www.canva.com/{}",
"urlMain": "https://www.canva.com/" "urlMain": "https://www.canva.com/"

@ -112,7 +112,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest):
self.username_check(['noonewouldeverusethis7'], self.username_check(['noonewouldeverusethis7'],
["Pinterest", "iMGSRC.RU", "Pastebin", ["Pinterest", "iMGSRC.RU", "Pastebin",
"WordPress", "devRant", "ImageShack", "MeetMe", "WordPress", "devRant", "ImageShack", "MeetMe",
"EyeEm", "CreativeMarket", "EVE Online" "EyeEm", "CreativeMarket", "EVE Online", "Canva"
], ],
exist_check=False exist_check=False
) )
@ -136,7 +136,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest):
self.username_check(['blue'], self.username_check(['blue'],
["Pinterest", "iMGSRC.RU", "Pastebin", ["Pinterest", "iMGSRC.RU", "Pastebin",
"WordPress", "devRant", "ImageShack", "MeetMe", "WordPress", "devRant", "ImageShack", "MeetMe",
"EyeEm", "CreativeMarket", "EVE Online" "EyeEm", "CreativeMarket", "EVE Online", "Canva"
], ],
exist_check=True exist_check=True
) )

Loading…
Cancel
Save