Skip to content

Commit

Permalink
tests(trello): Provide mocked response
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Nov 3, 2023
1 parent ef8511b commit d04aeb8
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions allauth/socialaccount/providers/trello/tests.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from allauth.socialaccount.tests import OAuthTestsMixin
from allauth.tests import TestCase
from allauth.tests import MockedResponse, TestCase

from .provider import TrelloProvider


class TrelloTests(OAuthTestsMixin, TestCase):
provider_id = TrelloProvider.id

def get_mocked_response(self):
return [
MockedResponse(
200,
r"""
{"id": "123", "email": "[email protected]", "username": "pennersr", "name": "Raymond"}
""",
),
] # noqa

0 comments on commit d04aeb8

Please sign in to comment.