| 1 |
from http import HTTPStatus |
| 2 |
|
| 3 |
from django.test import TestCase |
| 4 |
|
| 5 |
from allauth.socialaccount.providers.questrade.provider import QuestradeProvider |
| 6 |
from tests.apps.socialaccount.base import OAuth2TestsMixin |
| 7 |
from tests.mocking import MockedResponse |
| 8 |
|
| 9 |
|
| 10 |
class QuestradeTests(OAuth2TestsMixin, TestCase): |
| 11 |
provider_id = QuestradeProvider.id |
| 12 |
|
| 13 |
def get_mocked_response(self): |
| 14 |
return MockedResponse( |
| 15 |
HTTPStatus.OK, |
| 16 |
"""{"userId":400,"accounts":[]}""", |
| 17 |
) |
| 18 |
|
| 19 |
def get_expected_to_str(self): |
| 20 |
return "Questrade" |