Debian Codegraph @

tests/apps/socialaccount/providers/line/tests.py

raw
1 from http import HTTPStatus
2
3 from django.test import TestCase
4
5 from allauth.socialaccount.providers.line.provider import LineProvider
6 from tests.apps.socialaccount.base import OAuth2TestsMixin
7 from tests.mocking import MockedResponse
8
9
10 class LineTests(OAuth2TestsMixin, TestCase):
11 provider_id = LineProvider.id
12
13 def get_mocked_response(self):
14 return MockedResponse(
15 HTTPStatus.OK,
16 """
17 {
18 "userId": "u7d47d26a6bab09b95695ff02d1a36e38",
19 "displayName": "\uc774\uc0c1\ud601",
20 "pictureUrl":
21 "http://dl.profile.line-cdn.net/0m055ab14d725138288331268c45ac5286a35482fb794a"
22 }""",
23 )
24
25 def get_expected_to_str(self):
26 return "\uc774\uc0c1\ud601"