diff --git a/lms/static/sass/views/_program-details.scss b/lms/static/sass/views/_program-details.scss index 228b050ceefe169497c20f409ddea0cafabec9ac..d4f4843e181ca48950d0c9508c950db2bd73363e 100644 --- a/lms/static/sass/views/_program-details.scss +++ b/lms/static/sass/views/_program-details.scss @@ -312,7 +312,6 @@ .program-heading-message { font-weight: 300; } - } .course-enroll-view { diff --git a/openedx/core/djangoapps/credentials/tests/test_utils.py b/openedx/core/djangoapps/credentials/tests/test_utils.py index 334d8816884d85dc5998e24c4853951ac8f66ba5..b23120d1dffd26d36a1a33b68bc4e2a59d6d339c 100644 --- a/openedx/core/djangoapps/credentials/tests/test_utils.py +++ b/openedx/core/djangoapps/credentials/tests/test_utils.py @@ -46,6 +46,7 @@ class TestGetCredentials(CredentialsApiConfigMixin, CacheIsolationTestCase): 'status': 'awarded', } self.assertEqual(kwargs['querystring'], querystring) + self.assertIsNone(kwargs['resource_id']) self.assertEqual(actual, expected) @@ -66,5 +67,6 @@ class TestGetCredentials(CredentialsApiConfigMixin, CacheIsolationTestCase): 'program_uuid': program_uuid, } self.assertEqual(kwargs['querystring'], querystring) + self.assertEqual(kwargs['resource_id'], program_uuid) self.assertEqual(actual, expected) diff --git a/openedx/core/djangoapps/credentials/utils.py b/openedx/core/djangoapps/credentials/utils.py index be2775dd539d6a7bc6d8489be1d8cb34bfff2786..8a86fd400185d5327020d7f6b7671f583d25c89d 100644 --- a/openedx/core/djangoapps/credentials/utils.py +++ b/openedx/core/djangoapps/credentials/utils.py @@ -59,5 +59,10 @@ def get_credentials(user, program_uuid=None): api = get_credentials_api_client(user) return get_edx_api_data( - credential_configuration, 'credentials', api=api, querystring=querystring, cache_key=cache_key + credential_configuration, + 'credentials', + api=api, + resource_id=program_uuid, + querystring=querystring, + cache_key=cache_key )