From 3c7c6640b260ab79dc4ffe20c2f055f714fd7bb6 Mon Sep 17 00:00:00 2001 From: Raymond Penners Date: Mon, 3 Jul 2023 21:33:18 +0200 Subject: [PATCH] tests(facebook): Adjust test cases --- allauth/socialaccount/providers/facebook/tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/allauth/socialaccount/providers/facebook/tests.py b/allauth/socialaccount/providers/facebook/tests.py index bd010b188a..40f5a70382 100644 --- a/allauth/socialaccount/providers/facebook/tests.py +++ b/allauth/socialaccount/providers/facebook/tests.py @@ -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 = {} @@ -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, }