Merge pull request #738 from roopeshvs/master

Facebook Change Error Type to Status Code
This commit is contained in:
Siddharth Dushantha 2020-08-25 13:07:49 +02:00 committed by GitHub
commit 38736aadd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -504,8 +504,7 @@
"username_unclaimed": "noonewouldeverusethis7"
},
"Facebook": {
"errorMsg": "This page isn't available",
"errorType": "message",
"errorType": "status_code",
"regexCheck": "^[a-zA-Z0-9\\.]{3,49}(?<!\\.com|\\.org|\\.net)$",
"url": "https://www.facebook.com/{}",
"urlMain": "https://www.facebook.com/",

View file

@ -75,7 +75,7 @@ class SherlockDetectTests(SherlockBaseTest):
Will trigger an assert if detection mechanism did not work as expected.
"""
site = 'Facebook'
site = 'Pinterest'
site_data = self.site_data_all[site]
#Ensure that the site's detection method has not changed.
@ -102,7 +102,7 @@ class SherlockDetectTests(SherlockBaseTest):
Will trigger an assert if detection mechanism did not work as expected.
"""
site = 'Facebook'
site = 'Pinterest'
site_data = self.site_data_all[site]
#Ensure that the site's detection method has not changed.