This commit is contained in:
Iliyan Angelov
2025-09-14 23:24:25 +03:00
commit c67067a2a4
71311 changed files with 6800714 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
from allauth.socialaccount.providers.gumroad.provider import GumroadProvider
from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase
class GumroadTests(OAuth2TestsMixin, TestCase):
provider_id = GumroadProvider.id
def get_mocked_response(self):
return MockedResponse(
200,
"""{
"success": true,
"user": {
"bio": "a sailor, a tailor",
"name": "John Smith",
"twitter_handle": null,
"user_id": "G_-mnBf9b1j9A7a4ub4nFQ==",
"email": "johnsmith@gumroad.com",
"url": "https://gumroad.com/sailorjohn"
}
}""",
)