|
13 | 13 | from rest_framework.test import APITestCase |
14 | 14 |
|
15 | 15 | from lms.djangoapps.mfe_config_api.views import mfe_name_to_app_id |
| 16 | +from openedx.core.release import doc_version |
16 | 17 |
|
17 | 18 | # Default legacy configuration values, used in tests to build a correct expected response |
18 | 19 | default_legacy_config = { |
|
24 | 25 | "ENABLE_COURSE_DISCOVERY": False, |
25 | 26 | } |
26 | 27 |
|
| 28 | +INSTRUCTOR_SUPPORT_URL = f"https://docs.openedx.org/en/{doc_version()}/educators/index.html" |
| 29 | + |
27 | 30 |
|
28 | 31 | @ddt.ddt |
29 | 32 | class MFEConfigTestCase(APITestCase): |
@@ -313,7 +316,7 @@ def side_effect(key, default=None): |
313 | 316 | data = response.json() |
314 | 317 | self.assertEqual( # noqa: PT009 |
315 | 318 | data["SUPPORT_URL"], |
316 | | - "https://docs.openedx.org/en/latest/educators/index.html", |
| 319 | + INSTRUCTOR_SUPPORT_URL, |
317 | 320 | ) |
318 | 321 |
|
319 | 322 | @patch("lms.djangoapps.mfe_config_api.views.configuration_helpers") |
@@ -787,7 +790,7 @@ def side_effect(key, default=None): |
787 | 790 | instructor = apps_by_id["org.openedx.frontend.app.instructorDashboard"] |
788 | 791 | self.assertEqual( # noqa: PT009 |
789 | 792 | instructor["config"]["SUPPORT_URL"], |
790 | | - "https://docs.openedx.org/en/latest/educators/index.html", |
| 793 | + INSTRUCTOR_SUPPORT_URL, |
791 | 794 | ) |
792 | 795 |
|
793 | 796 | @patch("lms.djangoapps.mfe_config_api.views.configuration_helpers") |
|
0 commit comments