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,28 @@
# -*- coding: utf-8 -*-
from allauth.socialaccount.providers.wahoo.provider import WahooProvider
from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase
class WahooTests(OAuth2TestsMixin, TestCase):
provider_id = WahooProvider.id
def get_mocked_response(self):
# https://cloud-api.wahooligan.com/#users
return MockedResponse(
200,
"""
{
"id": 60462,
"height": "2.0",
"weight": "80.0",
"first": "Bob",
"last": "Smith",
"email": "sample@test-domain.com",
"birth": "1980-10-02",
"gender": 1,
"created_at": "2018-10-23T15:38:23.000Z",
"updated_at": "2018-10-24T20:46:40.000Z"
}
""",
)