Merge pull request #25887 from edx/saleem-latif/multiple-idps-migration

Upgraded edx-enterprise version to 3.15.0 and updated field name changed in that version.
This commit is contained in:
Saleem Latif
2020-12-16 09:34:29 +05:00
committed by GitHub
6 changed files with 6 additions and 6 deletions

View File

@@ -474,7 +474,7 @@ def enterprise_customer_uuid_for_request(request):
# has an ID equal to the ID we got from the running pipeline or from the
# request tpa_hint URL parameter.
enterprise_customer_uuid = EnterpriseCustomer.objects.get(
enterprise_customer_identity_provider__provider_id=sso_provider_id
enterprise_customer_identity_providers__provider_id=sso_provider_id
).uuid
except EnterpriseCustomer.DoesNotExist:
LOGGER.info(

View File

@@ -403,7 +403,7 @@ class TestEnterpriseApi(EnterpriseServiceMockMixin, CacheIsolationTestCase):
mock_get_enterprise_learner_data,
):
def mock_get_enterprise_customer(**kwargs):
uuid = kwargs.get('enterprise_customer_identity_provider__provider_id')
uuid = kwargs.get('enterprise_customer_identity_providers__provider_id')
if uuid:
return mock.MagicMock(uuid=uuid, user=self.user)
raise Exception