forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct bug in sapsf country to code mapping (openedx#32675)
- Loading branch information
Showing
2 changed files
with
13 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -534,7 +534,7 @@ def user_callback(request, _uri, headers): | |
'lastName': 'Smith', | ||
'defaultFullName': 'John Smith', | ||
'email': '[email protected]', | ||
'country': 'Australia', | ||
'country': 'United States', | ||
} | ||
}) | ||
) | ||
|
@@ -589,7 +589,7 @@ def test_register_sapsf_metadata_present(self): | |
what we're looking for, and when an empty override is provided (expected behavior is that | ||
existing value maps will be left alone). | ||
""" | ||
expected_country = 'AU' | ||
expected_country = 'US' | ||
provider_settings = { | ||
'sapsf_oauth_root_url': 'http://successfactors.com/oauth/', | ||
'sapsf_private_key': 'fake_private_key_here', | ||
|
@@ -632,7 +632,7 @@ def user_callback(request, _uri, headers): | |
'firstName': 'John', | ||
'lastName': 'Smith', | ||
'defaultFullName': 'John Smith', | ||
'country': 'Australia' | ||
'country': 'United States' | ||
} | ||
}) | ||
) | ||
|
@@ -666,7 +666,7 @@ def test_register_sapsf_metadata_present_override_relevant_value(self): | |
what we're looking for, and when an empty override is provided (expected behavior is that | ||
existing value maps will be left alone). | ||
""" | ||
value_map = {'country': {'Australia': 'NZ'}} | ||
value_map = {'country': {'United States': 'NZ'}} | ||
expected_country = 'NZ' | ||
provider_settings = { | ||
'sapsf_oauth_root_url': 'http://successfactors.com/oauth/', | ||
|
@@ -695,8 +695,8 @@ def test_register_sapsf_metadata_present_override_other_value(self): | |
what we're looking for, and when an empty override is provided (expected behavior is that | ||
existing value maps will be left alone). | ||
""" | ||
value_map = {'country': {'United States': 'blahfake'}} | ||
expected_country = 'AU' | ||
value_map = {'country': {'Australia': 'blahfake'}} | ||
expected_country = 'US' | ||
provider_settings = { | ||
'sapsf_oauth_root_url': 'http://successfactors.com/oauth/', | ||
'sapsf_private_key': 'fake_private_key_here', | ||
|
@@ -726,7 +726,7 @@ def test_register_sapsf_metadata_present_empty_value_override(self): | |
""" | ||
|
||
value_map = {'country': {}} | ||
expected_country = 'AU' | ||
expected_country = 'US' | ||
provider_settings = { | ||
'sapsf_oauth_root_url': 'http://successfactors.com/oauth/', | ||
'sapsf_private_key': 'fake_private_key_here', | ||
|