diff --git a/common/djangoapps/util/tests/test_course.py b/common/djangoapps/util/tests/test_course.py index c527ffe886..f0baf55814 100644 --- a/common/djangoapps/util/tests/test_course.py +++ b/common/djangoapps/util/tests/test_course.py @@ -56,14 +56,14 @@ class TestCourseSharingLinks(ModuleStoreTestCase): }, 'SOCIAL_SHARING_SETTINGS': { 'CUSTOM_COURSE_URLS': enable_social_sharing - }, - 'ENABLE_CATALOG_MICROFRONTEND': False + } } - with mock.patch.multiple('django.conf.settings', **mock_settings): - course_sharing_link = get_link_for_about_page( - self.course_overview if use_overview else self.course - ) + with override_settings(ENABLE_CATALOG_MICROFRONTEND=False): + with mock.patch.multiple('django.conf.settings', **mock_settings): + course_sharing_link = get_link_for_about_page( + self.course_overview if use_overview else self.course + ) return course_sharing_link