Debian Codegraph @

tests/apps/socialaccount/providers/drip/tests.py

raw
1 from http import HTTPStatus
2
3 from django.test import TestCase
4
5 from allauth.socialaccount.providers.drip.provider import DripProvider
6 from tests.apps.socialaccount.base import OAuth2TestsMixin
7 from tests.mocking import MockedResponse
8
9
10 class DripTests(OAuth2TestsMixin, TestCase):
11 provider_id = DripProvider.id
12
13 def get_mocked_response(self):
14 return MockedResponse(
15 HTTPStatus.OK,
16 """{
17 "users":[{
18 "email": "[email protected]",
19 "name": "John Doe",
20 "time_zone": "America/Los_Angeles"
21 }]
22 }""",
23 )
24
25 def get_expected_to_str(self):
26 return "[email protected]"