Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions common/djangoapps/student/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,19 +193,15 @@ class StudentDashboardTests(SharedModuleStoreTestCase, MilestonesTestCaseMixin,
ENABLED_SIGNALS = ['course_published']
MOCK_SETTINGS = {
'DISABLE_START_DATES': False,
'FEATURES': {
'DISABLE_SET_JWT_COOKIES_FOR_TESTS': True,
},
'DISABLE_SET_JWT_COOKIES_FOR_TESTS': True,
'SOCIAL_SHARING_SETTINGS': {
'CUSTOM_COURSE_URLS': True,
'DASHBOARD_FACEBOOK': True,
'DASHBOARD_TWITTER': True,
},
}
MOCK_SETTINGS_HIDE_COURSES = {
'FEATURES': {
'DISABLE_SET_JWT_COOKIES_FOR_TESTS': True,
}
'DISABLE_SET_JWT_COOKIES_FOR_TESTS': True,
}

def setUp(self):
Expand Down
9 changes: 4 additions & 5 deletions lms/djangoapps/mfe_config_api/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,10 @@ def side_effect(key, default=None):
configuration_helpers_mock.get_value.side_effect = side_effect

with override_settings(
HOMEPAGE_COURSE_MAX=3, # Plain settings (lowest precedence)
FEATURES={ # Settings FEATURES
"ENABLE_COURSE_SORTING_BY_START_DATE": True,
"ENABLE_COURSE_DISCOVERY": True,
}
# Plain settings (lowest precedence)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Plain settings (lowest precedence)

I don't think this comment is meaningful without the FEATURES override

HOMEPAGE_COURSE_MAX=3,
ENABLE_COURSE_SORTING_BY_START_DATE=True,
ENABLE_COURSE_DISCOVERY=True,
):
response = self.client.get(f"{self.mfe_config_api_url}?mfe=catalog")

Expand Down
Loading