Skip to content
Merged
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
7 changes: 5 additions & 2 deletions lms/djangoapps/mfe_config_api/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from rest_framework.test import APITestCase

from lms.djangoapps.mfe_config_api.views import mfe_name_to_app_id
from openedx.core.release import doc_version

# Default legacy configuration values, used in tests to build a correct expected response
default_legacy_config = {
Expand All @@ -24,6 +25,8 @@
"ENABLE_COURSE_DISCOVERY": False,
}

INSTRUCTOR_SUPPORT_URL = f"https://docs.openedx.org/en/{doc_version()}/educators/index.html"


@ddt.ddt
class MFEConfigTestCase(APITestCase):
Expand Down Expand Up @@ -313,7 +316,7 @@ def side_effect(key, default=None):
data = response.json()
self.assertEqual( # noqa: PT009
data["SUPPORT_URL"],
"https://docs.openedx.org/en/latest/educators/index.html",
INSTRUCTOR_SUPPORT_URL,
)

@patch("lms.djangoapps.mfe_config_api.views.configuration_helpers")
Expand Down Expand Up @@ -787,7 +790,7 @@ def side_effect(key, default=None):
instructor = apps_by_id["org.openedx.frontend.app.instructorDashboard"]
self.assertEqual( # noqa: PT009
instructor["config"]["SUPPORT_URL"],
"https://docs.openedx.org/en/latest/educators/index.html",
INSTRUCTOR_SUPPORT_URL,
)

@patch("lms.djangoapps.mfe_config_api.views.configuration_helpers")
Expand Down
Loading