-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@W-14870747 - Dependecy updates and disabling Socalapp in db
- Loading branch information
Showing
14 changed files
with
248 additions
and
242 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -1,14 +1,24 @@ | ||
import pytest | ||
from ..provider import CustomSalesforceProvider | ||
|
||
|
||
def test_get_auth_params(rf): | ||
@pytest.mark.django_db | ||
def test_get_auth_params(rf, social_app_factory): | ||
request = rf.get("/") | ||
result = CustomSalesforceProvider(request).get_auth_params(request, None) | ||
app = social_app_factory( | ||
provider="salesforce", | ||
) | ||
provider = CustomSalesforceProvider(request, app) | ||
result = provider.get_auth_params(request, None) | ||
assert "prompt" in result and result["prompt"] == "login" | ||
|
||
|
||
def test_extract_uid(rf): | ||
@pytest.mark.django_db | ||
def test_extract_uid(rf, social_app_factory): | ||
request = rf.get("/") | ||
provider = CustomSalesforceProvider(request) | ||
app = social_app_factory( | ||
provider="salesforce", | ||
) | ||
provider = CustomSalesforceProvider(request, app) | ||
result = provider.extract_uid({"organization_id": "ORG", "user_id": "USER"}) | ||
assert result == "ORG/USER" |
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
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
Oops, something went wrong.