Debian Codegraph @

tests/apps/socialaccount/providers/eveonline/tests.py

raw
1 from http import HTTPStatus
2
3 from django.test import TestCase
4
5 from allauth.socialaccount.providers.eveonline.provider import EveOnlineProvider
6 from tests.apps.socialaccount.base import OAuth2TestsMixin
7 from tests.mocking import MockedResponse
8
9
10 class EveOnlineTests(OAuth2TestsMixin, TestCase):
11 provider_id = EveOnlineProvider.id
12
13 def get_mocked_response(self):
14 return MockedResponse(
15 HTTPStatus.OK,
16 """
17 {
18 "CharacterID": 273042051,
19 "CharacterName": "CCP illurkall",
20 "ExpiresOn": "2014-05-23T15:01:15.182864Z",
21 "Scopes": " ",
22 "TokenType": "Character",
23 "CharacterOwnerHash": "XM4D...FoY="
24 }""",
25 )
26
27 def get_expected_to_str(self):
28 return "CCP illurkall"