refactor: migrated FEATURES dict settings to top-level in core files and fixed related test files. (#37389)
* refactor: moved remaining feature dicts settings into top-level settings. * refactor: moved remaining feature dicts settings into top-level settings. * fix: fixed the test files * fix: fixed tehe pylint errors * fix: fixation of the cms ci failure * fix: fixed remaining feature settings for cms * fix: added fix for requirements * fix: added fix for lms tests * fix: resolved the test views issue * fix: configured views file and test_views * fix: fixed lint errors and assertion issues * fix: added fix for base url issue in test view * fix: added fix for base_url and assertion issue * fix: added configurations for base utl fix * fix: handled none issue for mfe config * fix: corrected override settings in test views * fix: added getattr defensive technique for view settings * fix: reverted views and test_views file * fix: added settings in views file * fix: added with patch within functions in test view * fix: rearranged the features in default_legacy_config * fix: fixing the tests with clearing cache * fix: reverted test views to verify the CI check * fix: added cache clear in mfe config test * fix: fixed the patch toggles to override settings * fix: fixed the lint errors * fix: changed patch toggle to override settings
This commit is contained in:
@@ -892,8 +892,8 @@ class UpdateCourseDetailsTests(ModuleStoreTestCase):
|
||||
|
||||
@patch.dict("django.conf.settings.FEATURES", {
|
||||
"ENABLE_PREREQUISITE_COURSES": False,
|
||||
"ENTRANCE_EXAMS": False,
|
||||
})
|
||||
@override_settings(ENTRANCE_EXAMS=False)
|
||||
@patch("cms.djangoapps.contentstore.utils.CourseDetails.update_from_json")
|
||||
def test_update_course_details_self_paced(self, mock_update):
|
||||
"""
|
||||
@@ -918,8 +918,8 @@ class UpdateCourseDetailsTests(ModuleStoreTestCase):
|
||||
|
||||
@patch.dict("django.conf.settings.FEATURES", {
|
||||
"ENABLE_PREREQUISITE_COURSES": False,
|
||||
"ENTRANCE_EXAMS": False,
|
||||
})
|
||||
@override_settings(ENTRANCE_EXAMS=False)
|
||||
@patch("cms.djangoapps.contentstore.utils.CourseDetails.update_from_json")
|
||||
def test_update_course_details_instructor_paced(self, mock_update):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user