Skip to content

Commit

Permalink
tests(facebook): Adjust test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Jul 3, 2023
1 parent 934955f commit 3c7c664
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions allauth/socialaccount/providers/facebook/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ def test_username_based_on_provider_with_simple_name(self):
socialaccount = SocialAccount.objects.get(uid="1234567")
self.assertEqual(socialaccount.user.username, "harvey")

@override_settings(
SOCIALACCOUNT_PROVIDERS={
"facebook": {
"METHOD": "js_sdk",
}
},
)
def test_media_js(self):
request = RequestFactory().get(reverse("account_login"))
request.session = {}
Expand All @@ -95,6 +102,7 @@ def test_login_by_token(self):
@override_settings(
SOCIALACCOUNT_PROVIDERS={
"facebook": {
"METHOD": "js_sdk",
"AUTH_PARAMS": {"auth_type": "reauthenticate"},
"VERIFIED_EMAIL": False,
}
Expand Down

0 comments on commit 3c7c664

Please sign in to comment.