| 1 |
from http import HTTPStatus |
| 2 |
|
| 3 |
from django.test import TestCase |
| 4 |
|
| 5 |
from allauth.socialaccount.providers.trello.provider import TrelloProvider |
| 6 |
from tests.apps.socialaccount.base import OAuthTestsMixin |
| 7 |
from tests.mocking import MockedResponse |
| 8 |
|
| 9 |
|
| 10 |
class TrelloTests(OAuthTestsMixin, TestCase): |
| 11 |
provider_id = TrelloProvider.id |
| 12 |
|
| 13 |
def get_mocked_response(self): |
| 14 |
return [ |
| 15 |
MockedResponse( |
| 16 |
HTTPStatus.OK, |
| 17 |
r""" |
| 18 |
{"id": "123", "email": "[email protected]", "username": "pennersr", "name": "Raymond"} |
| 19 |
""", |
| 20 |
), |
| 21 |
] # noqa |
| 22 |
|
| 23 |
def get_expected_to_str(self): |
| 24 |
return "pennersr" |