From 6ec4dfb0654679db4e372f943c4fe7a58b48cea9 Mon Sep 17 00:00:00 2001 From: Luis Felipe Castano Date: Fri, 1 Mar 2024 17:16:52 -0500 Subject: [PATCH] fix: add setting override --- lms/djangoapps/discussion/tests/test_views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/discussion/tests/test_views.py b/lms/djangoapps/discussion/tests/test_views.py index 6b7f2de3ee..f9f758a01e 100644 --- a/lms/djangoapps/discussion/tests/test_views.py +++ b/lms/djangoapps/discussion/tests/test_views.py @@ -2287,7 +2287,7 @@ def setUp(self): self.staff_user = AdminFactory.create() CourseEnrollmentFactory.create(user=self.user, course_id=self.course.id) - @override_settings(DISCUSSIONS_MICROFRONTEND_URL="http://test.url") + @override_settings(DISCUSSIONS_MICROFRONTEND_URL="http://test.url", USE_DISCUSSIONS_MFE_FRONTEND="true") def test_redirect_from_legacy_base_url_to_new_experience(self): """ Verify that the legacy url is redirected to MFE homepage when @@ -2302,7 +2302,7 @@ def test_redirect_from_legacy_base_url_to_new_experience(self): expected_url = f"{settings.DISCUSSIONS_MICROFRONTEND_URL}/{str(self.course.id)}" assert response.url == expected_url - @override_settings(DISCUSSIONS_MICROFRONTEND_URL="http://test.url") + @override_settings(DISCUSSIONS_MICROFRONTEND_URL="http://test.url", USE_DISCUSSIONS_MFE_FRONTEND="true") def test_redirect_from_legacy_profile_url_to_new_experience(self): """ Verify that the requested user profile is redirected to MFE learners tab when @@ -2317,7 +2317,7 @@ def test_redirect_from_legacy_profile_url_to_new_experience(self): expected_url = f"{settings.DISCUSSIONS_MICROFRONTEND_URL}/{str(self.course.id)}/learners" assert response.url == expected_url - @override_settings(DISCUSSIONS_MICROFRONTEND_URL="http://test.url") + @override_settings(DISCUSSIONS_MICROFRONTEND_URL="http://test.url", USE_DISCUSSIONS_MFE_FRONTEND="true") def test_redirect_from_legacy_single_thread_to_new_experience(self): """ Verify that a legacy single url is redirected to corresponding MFE thread url when the ENABLE_DISCUSSIONS_MFE