This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
274fdd8
commit db3a7cb
Showing
3 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
10 changes: 6 additions & 4 deletions
10
...ests/accounts/costum_oauth2_test_mixin.py → ...ests/accounts/custom_oauth2_test_mixin.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
from django.urls import reverse | ||
|
||
from geocity.apps.accounts.geomapfish.provider import GeomapfishProvider | ||
from geocity.tests.accounts.costum_oauth2_test_mixin import CostumOAuth2TestsMixin | ||
from geocity.tests.accounts.custom_oauth2_test_mixin import CustomOAuth2TestsMixin | ||
|
||
User = get_user_model() | ||
|
||
|
@@ -49,7 +49,7 @@ | |
} | ||
|
||
|
||
class GeomapfishOAuth2Tests(CostumOAuth2TestsMixin, TestCase): | ||
class GeomapfishOAuth2Tests(CustomOAuth2TestsMixin, TestCase): | ||
provider_id = GeomapfishProvider.id | ||
|
||
def get_mocked_response(self, email="[email protected]", username="test"): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import json | ||
|
||
from allauth.tests import MockedResponse, TestCase | ||
from django.contrib.auth import get_user_model | ||
from django.urls import reverse | ||
|
||
from geocity.tests.accounts.costum_oauth2_test_mixin import CostumOAuth2TestsMixin | ||
|
||
User = get_user_model() | ||
from geocity.apps.accounts.dootix.provider import DootixProvider | ||
from geocity.tests.accounts.custom_oauth2_test_mixin import CustomOAuth2TestsMixin | ||
|
||
# Dootix profile_url success response mock. | ||
# Happen if login succeeded. | ||
|
@@ -23,11 +21,13 @@ | |
} | ||
|
||
|
||
class DootixOAuth2Tests(CostumOAuth2TestsMixin, TestCase): | ||
class DootixOAuth2Tests(CustomOAuth2TestsMixin, TestCase): | ||
""" | ||
Default OAuth2 automated tests + dootix specific tests. | ||
""" | ||
|
||
provider_id = DootixProvider.id | ||
|
||
def get_mocked_response(self, email="[email protected]"): | ||
profile_response_mock.update( | ||
{ | ||
|