-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2156 from SFDO-Tooling/revert-2154-update-deps-py…
…thon Revert "@W-14603959 - Update backend deps and test failure fixes"
- Loading branch information
Showing
8 changed files
with
243 additions
and
243 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
from ..provider import CustomSalesforceProvider | ||
import pytest | ||
|
||
|
||
@pytest.mark.django_db | ||
def test_get_auth_params(rf, social_app_factory): | ||
def test_get_auth_params(rf): | ||
request = rf.get("/") | ||
app = social_app_factory( | ||
name=CustomSalesforceProvider.id, | ||
provider=CustomSalesforceProvider.id, | ||
) | ||
result = CustomSalesforceProvider(request, app).get_auth_params(request, None) | ||
result = CustomSalesforceProvider(request).get_auth_params(request, None) | ||
assert "prompt" in result and result["prompt"] == "login" | ||
|
||
|
||
@pytest.mark.django_db | ||
def test_extract_uid(rf, social_app_factory): | ||
def test_extract_uid(rf): | ||
request = rf.get("/") | ||
app = social_app_factory( | ||
name=CustomSalesforceProvider.id, | ||
provider=CustomSalesforceProvider.id, | ||
) | ||
provider = CustomSalesforceProvider(request, app) | ||
provider = CustomSalesforceProvider(request) | ||
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
Oops, something went wrong.