test: fix test overrides

This commit is contained in:
Serhii Nanai
2025-09-29 15:26:41 +03:00
parent 13f450ff29
commit cb4dcb02bd

View File

@@ -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