From cb4dcb02bdd89b0ab4f1a5251b623b58dd37c94b Mon Sep 17 00:00:00 2001 From: Serhii Nanai Date: Mon, 29 Sep 2025 15:26:41 +0300 Subject: [PATCH] test: fix test overrides --- common/djangoapps/util/tests/test_course.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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