test: Replace calls to reverse('courseware')
We want to remove this page and URL endpoint so we're removing all the references in the code that might point to this page. It was replaced by the sequences page in the Learning MFE years ago but the old pages were never cleaned up. We are replacing the calls with the URL for the courseware in the learning MFE. See https://github.com/openedx/edx-platform/issues/35803 for more details.
This commit is contained in:
@@ -7,11 +7,15 @@ from django.test import TestCase
|
||||
from django.test.client import RequestFactory
|
||||
|
||||
from common.djangoapps.student.tests.factories import AnonymousUserFactory, UserFactory
|
||||
from openedx.core.djangolib.testing.utils import skip_unless_lms
|
||||
|
||||
from ..middleware import UserTagsEventContextMiddleware
|
||||
from ..tests.factories import UserCourseTagFactory
|
||||
|
||||
|
||||
# This middleware only gets installed in the LMS so no need to test
|
||||
# it in the CMS context.
|
||||
@skip_unless_lms
|
||||
class TagsMiddlewareTest(TestCase):
|
||||
"""
|
||||
Test the UserTagsEventContextMiddleware
|
||||
|
||||
Reference in New Issue
Block a user