Skip to content

Commit cb4dcb0

Browse files
committed
test: fix test overrides
1 parent 13f450f commit cb4dcb0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

common/djangoapps/util/tests/test_course.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ def get_course_sharing_link(self, enable_social_sharing, enable_mktg_site, use_o
5656
},
5757
'SOCIAL_SHARING_SETTINGS': {
5858
'CUSTOM_COURSE_URLS': enable_social_sharing
59-
},
60-
'ENABLE_CATALOG_MICROFRONTEND': False
59+
}
6160
}
6261

63-
with mock.patch.multiple('django.conf.settings', **mock_settings):
64-
course_sharing_link = get_link_for_about_page(
65-
self.course_overview if use_overview else self.course
66-
)
62+
with override_settings(ENABLE_CATALOG_MICROFRONTEND=False):
63+
with mock.patch.multiple('django.conf.settings', **mock_settings):
64+
course_sharing_link = get_link_for_about_page(
65+
self.course_overview if use_overview else self.course
66+
)
6767

6868
return course_sharing_link
6969

0 commit comments

Comments
 (0)