Commit 420ed091 by Ned Batchelder Committed by GitHub

Merge pull request #14784 from edx/nedbat/patch-ficus-help-tests

Force help link tests to pass on Ficus
parents 541e7e44 fc8d515b
...@@ -37,33 +37,35 @@ class HelpContextProcessorTest(TestCase): ...@@ -37,33 +37,35 @@ class HelpContextProcessorTest(TestCase):
def test_get_doc_url(self): def test_get_doc_url(self):
# Test default values. # Test default values.
self.assertEqual( self.assertEqual(
"http://edx.readthedocs.io/projects/open-edx-learner-guide/en/latest/index.html", "http://edx.readthedocs.io/projects/open-edx-learner-guide/en/open-release-ficus.master/index.html",
HelpContextProcessorTest._get_doc_url() HelpContextProcessorTest._get_doc_url()
) )
# Provide a known page_token. # Provide a known page_token.
self.assertEqual( self.assertEqual(
"http://edx.readthedocs.io/projects/open-edx-learner-guide/en/latest/sfd_dashboard_profile/index.html", "http://edx.readthedocs.io/projects/open-edx-learner-guide/" +
"en/open-release-ficus.master/sfd_dashboard_profile/index.html",
HelpContextProcessorTest._get_doc_url('profile') HelpContextProcessorTest._get_doc_url('profile')
) )
# Use settings.DOC_LINK_BASE_URL to override default base_url. # Use settings.DOC_LINK_BASE_URL to override default base_url.
with patch('django.conf.settings.DOC_LINK_BASE_URL', 'settings_base_url'): with patch('django.conf.settings.DOC_LINK_BASE_URL', 'settings_base_url'):
self.assertEqual( self.assertEqual(
"settings_base_url/en/latest/SFD_instructor_dash_help.html", "settings_base_url/en/open-release-ficus.master/SFD_instructor_dash_help.html",
HelpContextProcessorTest._get_doc_url('instructor') HelpContextProcessorTest._get_doc_url('instructor')
) )
def test_get_pdf_url(self): def test_get_pdf_url(self):
# Test default values. # Test default values.
self.assertEqual( self.assertEqual(
"https://media.readthedocs.org/pdf/open-edx-learner-guide/latest/open-edx-learner-guide.pdf", "https://media.readthedocs.org/pdf/open-edx-learner-guide/" +
"open-release-ficus.master/open-edx-learner-guide.pdf",
HelpContextProcessorTest._get_pdf_url() HelpContextProcessorTest._get_pdf_url()
) )
# Use settings.DOC_LINK_BASE_URL to override default base_url. # Use settings.DOC_LINK_BASE_URL to override default base_url.
with patch('django.conf.settings.DOC_LINK_BASE_URL', 'settings_base_url'): with patch('django.conf.settings.DOC_LINK_BASE_URL', 'settings_base_url'):
self.assertEqual( self.assertEqual(
"settings_base_url/latest/open-edx-learner-guide.pdf", "settings_base_url/open-release-ficus.master/open-edx-learner-guide.pdf",
HelpContextProcessorTest._get_pdf_url() HelpContextProcessorTest._get_pdf_url()
) )
...@@ -66,7 +66,8 @@ class TestCohortHelp(ContainerBase): ...@@ -66,7 +66,8 @@ class TestCohortHelp(ContainerBase):
""" """
self.cohort_management.add_cohort('cohort_name') self.cohort_management.add_cohort('cohort_name')
href = 'http://edx.readthedocs.org/projects/edx-partner-course-staff/en/latest/' \ href = 'http://edx.readthedocs.org/projects/open-edx-building-and-running-a-course/en/' \
'open-release-ficus.master/' \
'course_features/cohorts/cohort_config.html#assign-learners-to-cohorts-manually' 'course_features/cohorts/cohort_config.html#assign-learners-to-cohorts-manually'
self.verify_help_link(href) self.verify_help_link(href)
...@@ -86,7 +87,8 @@ class TestCohortHelp(ContainerBase): ...@@ -86,7 +87,8 @@ class TestCohortHelp(ContainerBase):
self.cohort_management.add_cohort('cohort_name', assignment_type='random') self.cohort_management.add_cohort('cohort_name', assignment_type='random')
href = 'http://edx.readthedocs.org/projects/edx-partner-course-staff/en/latest/' \ href = 'http://edx.readthedocs.org/projects/open-edx-building-and-running-a-course/en/' \
'open-release-ficus.master/' \
'course_features/cohorts/cohorts_overview.html#all-automated-assignment' 'course_features/cohorts/cohorts_overview.html#all-automated-assignment'
self.verify_help_link(href) self.verify_help_link(href)
...@@ -119,6 +121,7 @@ class InstructorDashboardHelp(BaseInstructorDashboardTest): ...@@ -119,6 +121,7 @@ class InstructorDashboardHelp(BaseInstructorDashboardTest):
When I click "Help" When I click "Help"
Then I see help about the instructor dashboard in a new tab Then I see help about the instructor dashboard in a new tab
""" """
href = 'http://edx.readthedocs.io/projects/edx-guide-for-students/en/latest/SFD_instructor_dash_help.html' href = 'http://edx.readthedocs.io/projects/open-edx-learner-guide/en/' \
'open-release-ficus.master/SFD_instructor_dash_help.html'
self.instructor_dashboard_page.click_help() self.instructor_dashboard_page.click_help()
assert_opened_help_link_is_correct(self, href) assert_opened_help_link_is_correct(self, href)
...@@ -98,7 +98,7 @@ class SignInHelpTest(AcceptanceTest): ...@@ -98,7 +98,7 @@ class SignInHelpTest(AcceptanceTest):
sign_in_page = self.index_page.click_sign_in() sign_in_page = self.index_page.click_sign_in()
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/getting_started/get_started.html' 'en/open-release-ficus.master/getting_started/get_started.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -131,7 +131,7 @@ class SignUpHelpTest(AcceptanceTest): ...@@ -131,7 +131,7 @@ class SignUpHelpTest(AcceptanceTest):
sign_up_page = self.index_page.click_sign_up() sign_up_page = self.index_page.click_sign_up()
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/getting_started/get_started.html' 'en/open-release-ficus.master/getting_started/get_started.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -163,7 +163,7 @@ class HomeHelpTest(StudioCourseTest): ...@@ -163,7 +163,7 @@ class HomeHelpTest(StudioCourseTest):
""" """
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/getting_started/get_started.html' 'en/open-release-ficus.master/getting_started/get_started.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -183,7 +183,7 @@ class HomeHelpTest(StudioCourseTest): ...@@ -183,7 +183,7 @@ class HomeHelpTest(StudioCourseTest):
""" """
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/getting_started/get_started.html' 'en/open-release-ficus.master/getting_started/get_started.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -220,7 +220,7 @@ class NewCourseHelpTest(AcceptanceTest): ...@@ -220,7 +220,7 @@ class NewCourseHelpTest(AcceptanceTest):
""" """
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \
'/en/latest/getting_started/get_started.html' '/en/open-release-ficus.master/getting_started/get_started.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -240,7 +240,7 @@ class NewCourseHelpTest(AcceptanceTest): ...@@ -240,7 +240,7 @@ class NewCourseHelpTest(AcceptanceTest):
""" """
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/getting_started/get_started.html' 'en/open-release-ficus.master/getting_started/get_started.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -277,7 +277,7 @@ class NewLibraryHelpTest(AcceptanceTest): ...@@ -277,7 +277,7 @@ class NewLibraryHelpTest(AcceptanceTest):
""" """
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/getting_started/get_started.html' 'en/open-release-ficus.master/getting_started/get_started.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -297,7 +297,7 @@ class NewLibraryHelpTest(AcceptanceTest): ...@@ -297,7 +297,7 @@ class NewLibraryHelpTest(AcceptanceTest):
""" """
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/getting_started/get_started.html' 'en/open-release-ficus.master/getting_started/get_started.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -334,7 +334,7 @@ class LibraryTabHelpTest(AcceptanceTest): ...@@ -334,7 +334,7 @@ class LibraryTabHelpTest(AcceptanceTest):
click_css(self.dashboard_page, '#course-index-tabs .libraries-tab', 0, False) click_css(self.dashboard_page, '#course-index-tabs .libraries-tab', 0, False)
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/getting_started/get_started.html' 'en/open-release-ficus.master/getting_started/get_started.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -367,7 +367,7 @@ class LibraryHelpTest(StudioLibraryTest): ...@@ -367,7 +367,7 @@ class LibraryHelpTest(StudioLibraryTest):
self.library_page.visit() self.library_page.visit()
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = "http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/" \ href = "http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/" \
"en/latest/course_components/libraries.html" "en/open-release-ficus.master/course_components/libraries.html"
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -389,7 +389,7 @@ class LibraryHelpTest(StudioLibraryTest): ...@@ -389,7 +389,7 @@ class LibraryHelpTest(StudioLibraryTest):
self.library_page.visit() self.library_page.visit()
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/course_components/libraries.html' 'en/open-release-ficus.master/course_components/libraries.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -413,7 +413,7 @@ class LibraryHelpTest(StudioLibraryTest): ...@@ -413,7 +413,7 @@ class LibraryHelpTest(StudioLibraryTest):
self.library_user_page.visit() self.library_user_page.visit()
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \
'latest/course_components/libraries.html#give-other-users-access-to-your-library' 'open-release-ficus.master/course_components/libraries.html#give-other-users-access-to-your-library'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -444,7 +444,7 @@ class LibraryImportHelpTest(StudioLibraryTest): ...@@ -444,7 +444,7 @@ class LibraryImportHelpTest(StudioLibraryTest):
""" """
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \
'latest/course_components/libraries.html#import-a-library' 'open-release-ficus.master/course_components/libraries.html#import-a-library'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -464,7 +464,7 @@ class LibraryImportHelpTest(StudioLibraryTest): ...@@ -464,7 +464,7 @@ class LibraryImportHelpTest(StudioLibraryTest):
""" """
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \
'latest/course_components/libraries.html#import-a-library' 'open-release-ficus.master/course_components/libraries.html#import-a-library'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -496,7 +496,7 @@ class LibraryExportHelpTest(StudioLibraryTest): ...@@ -496,7 +496,7 @@ class LibraryExportHelpTest(StudioLibraryTest):
""" """
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \
'latest/course_components/libraries.html#export-a-library' 'open-release-ficus.master/course_components/libraries.html#export-a-library'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -516,7 +516,7 @@ class LibraryExportHelpTest(StudioLibraryTest): ...@@ -516,7 +516,7 @@ class LibraryExportHelpTest(StudioLibraryTest):
""" """
# The href we want to see in anchor help element. # The href we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \
'latest/course_components/libraries.html#export-a-library' 'open-release-ficus.master/course_components/libraries.html#export-a-library'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -551,7 +551,7 @@ class NewProgramHelpTest(ProgramsConfigMixin, AcceptanceTest): ...@@ -551,7 +551,7 @@ class NewProgramHelpTest(ProgramsConfigMixin, AcceptanceTest):
""" """
self.program_page.click_new_program_button() self.program_page.click_new_program_button()
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \
'/en/latest/index.html' '/en/open-release-ficus.master/index.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -587,7 +587,7 @@ class CourseOutlineHelpTest(StudioCourseTest): ...@@ -587,7 +587,7 @@ class CourseOutlineHelpTest(StudioCourseTest):
And help url should end with 'developing_course/course_outline.html' And help url should end with 'developing_course/course_outline.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \
'/en/latest/developing_course/course_outline.html' '/en/open-release-ficus.master/developing_course/course_outline.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -606,7 +606,7 @@ class CourseOutlineHelpTest(StudioCourseTest): ...@@ -606,7 +606,7 @@ class CourseOutlineHelpTest(StudioCourseTest):
And help url should end with 'developing_course/course_outline.html' And help url should end with 'developing_course/course_outline.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \
'/en/latest/developing_course/course_outline.html' '/en/open-release-ficus.master/developing_course/course_outline.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -643,7 +643,7 @@ class CourseUpdateHelpTest(StudioCourseTest): ...@@ -643,7 +643,7 @@ class CourseUpdateHelpTest(StudioCourseTest):
And help url should end with 'course_assets/handouts_updates.html' And help url should end with 'course_assets/handouts_updates.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/course_assets/handouts_updates.html' 'en/open-release-ficus.master/course_assets/handouts_updates.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -678,7 +678,7 @@ class AssetIndexHelpTest(StudioCourseTest): ...@@ -678,7 +678,7 @@ class AssetIndexHelpTest(StudioCourseTest):
And help url should end with 'course_assets/course_files.html' And help url should end with 'course_assets/course_files.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/course_assets/course_files.html' 'en/open-release-ficus.master/course_assets/course_files.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -697,7 +697,7 @@ class AssetIndexHelpTest(StudioCourseTest): ...@@ -697,7 +697,7 @@ class AssetIndexHelpTest(StudioCourseTest):
And help url should end with 'course_assets/course_files.html' And help url should end with 'course_assets/course_files.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/course_assets/course_files.html' 'en/open-release-ficus.master/course_assets/course_files.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -733,7 +733,7 @@ class CoursePagesHelpTest(StudioCourseTest): ...@@ -733,7 +733,7 @@ class CoursePagesHelpTest(StudioCourseTest):
And help url should end with 'course_assets/pages.html' And help url should end with 'course_assets/pages.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/course_assets/pages.html' 'en/open-release-ficus.master/course_assets/pages.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -768,7 +768,7 @@ class UploadTextbookHelpTest(StudioCourseTest): ...@@ -768,7 +768,7 @@ class UploadTextbookHelpTest(StudioCourseTest):
And help url should end with 'course_assets/textbooks.html' And help url should end with 'course_assets/textbooks.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \
'/en/latest/course_assets/textbooks.html' '/en/open-release-ficus.master/course_assets/textbooks.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -787,7 +787,7 @@ class UploadTextbookHelpTest(StudioCourseTest): ...@@ -787,7 +787,7 @@ class UploadTextbookHelpTest(StudioCourseTest):
And help url should end with 'course_assets/textbooks.html' And help url should end with 'course_assets/textbooks.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \
'/en/latest/course_assets/textbooks.html' '/en/open-release-ficus.master/course_assets/textbooks.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -838,7 +838,7 @@ class StudioUnitHelpTest(ContainerBase): ...@@ -838,7 +838,7 @@ class StudioUnitHelpTest(ContainerBase):
""" """
unit_page = self.go_to_unit_page() unit_page = self.go_to_unit_page()
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \
'/en/latest/developing_course/course_units.html' '/en/open-release-ficus.master/developing_course/course_units.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -875,7 +875,7 @@ class SettingsHelpTest(StudioCourseTest): ...@@ -875,7 +875,7 @@ class SettingsHelpTest(StudioCourseTest):
And help url should end with 'set_up_course/setting_up_student_view.html' And help url should end with 'set_up_course/setting_up_student_view.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \
'/en/latest/set_up_course/setting_up_student_view.html' '/en/open-release-ficus.master/set_up_course/setting_up_student_view.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -912,7 +912,7 @@ class GradingPageHelpTest(StudioCourseTest): ...@@ -912,7 +912,7 @@ class GradingPageHelpTest(StudioCourseTest):
And help url should end with 'grading/index.html' And help url should end with 'grading/index.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/grading/index.html' 'en/open-release-ficus.master/grading/index.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -949,7 +949,7 @@ class CourseTeamSettingsHelpTest(StudioCourseTest): ...@@ -949,7 +949,7 @@ class CourseTeamSettingsHelpTest(StudioCourseTest):
And help url should end with 'set_up_course/course_staffing.html#add-course-team-members' And help url should end with 'set_up_course/course_staffing.html#add-course-team-members'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/set_up_course/course_staffing.html#add-course-team-members' 'en/open-release-ficus.master/set_up_course/course_staffing.html#add-course-team-members'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -987,7 +987,7 @@ class CourseGroupConfigurationHelpTest(StudioCourseTest): ...@@ -987,7 +987,7 @@ class CourseGroupConfigurationHelpTest(StudioCourseTest):
And help url should end with 'index.html' And help url should end with 'index.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/index.html' 'en/open-release-ficus.master/index.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -1007,7 +1007,7 @@ class CourseGroupConfigurationHelpTest(StudioCourseTest): ...@@ -1007,7 +1007,7 @@ class CourseGroupConfigurationHelpTest(StudioCourseTest):
And help url should end with 'course_features/cohorts/cohorted_courseware.html' And help url should end with 'course_features/cohorts/cohorted_courseware.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/course_features/cohorts/cohorted_courseware.html' 'en/open-release-ficus.master/course_features/cohorts/cohorted_courseware.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -1045,7 +1045,7 @@ class AdvancedSettingHelpTest(StudioCourseTest): ...@@ -1045,7 +1045,7 @@ class AdvancedSettingHelpTest(StudioCourseTest):
And help url should end with 'index.html' And help url should end with 'index.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \
'/en/latest/index.html' '/en/open-release-ficus.master/index.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -1082,7 +1082,7 @@ class CertificatePageHelpTest(StudioCourseTest): ...@@ -1082,7 +1082,7 @@ class CertificatePageHelpTest(StudioCourseTest):
And help url should end with 'set_up_course/creating_course_certificates.html' And help url should end with 'set_up_course/creating_course_certificates.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \
'/en/latest/set_up_course/creating_course_certificates.html' '/en/open-release-ficus.master/set_up_course/creating_course_certificates.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -1101,7 +1101,7 @@ class CertificatePageHelpTest(StudioCourseTest): ...@@ -1101,7 +1101,7 @@ class CertificatePageHelpTest(StudioCourseTest):
And help url should end with 'set_up_course/creating_course_certificates.html' And help url should end with 'set_up_course/creating_course_certificates.html'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course' \
'/en/latest/set_up_course/creating_course_certificates.html' '/en/open-release-ficus.master/set_up_course/creating_course_certificates.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -1152,7 +1152,8 @@ class GroupExperimentConfigurationHelpTest(ContainerBase): ...@@ -1152,7 +1152,8 @@ class GroupExperimentConfigurationHelpTest(ContainerBase):
And help url should end with And help url should end with
'content_experiments_configure.html#set-up-group-configurations-in-edx-studio' 'content_experiments_configure.html#set-up-group-configurations-in-edx-studio'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/latest/course_features' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en' \
'/open-release-ficus.master/course_features' \
'/content_experiments/content_experiments_configure.html#set-up-group-configurations-in-edx-studio' '/content_experiments/content_experiments_configure.html#set-up-group-configurations-in-edx-studio'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -1190,7 +1191,7 @@ class ToolsImportHelpTest(StudioCourseTest): ...@@ -1190,7 +1191,7 @@ class ToolsImportHelpTest(StudioCourseTest):
And help url should end with 'releasing_course/export_import_course.html#import-a-course' And help url should end with 'releasing_course/export_import_course.html#import-a-course'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \
'latest/releasing_course/export_import_course.html#import-a-course' 'open-release-ficus.master/releasing_course/export_import_course.html#import-a-course'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -1209,7 +1210,7 @@ class ToolsImportHelpTest(StudioCourseTest): ...@@ -1209,7 +1210,7 @@ class ToolsImportHelpTest(StudioCourseTest):
And help url should end with 'releasing_course/export_import_course.html#import-a-course' And help url should end with 'releasing_course/export_import_course.html#import-a-course'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \
'latest/releasing_course/export_import_course.html#import-a-course' 'open-release-ficus.master/releasing_course/export_import_course.html#import-a-course'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -1247,7 +1248,7 @@ class ToolsExportHelpTest(StudioCourseTest): ...@@ -1247,7 +1248,7 @@ class ToolsExportHelpTest(StudioCourseTest):
And help url should end with 'releasing_course/export_import_course.html#export-a-course' And help url should end with 'releasing_course/export_import_course.html#export-a-course'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \
'latest/releasing_course/export_import_course.html#export-a-course' 'open-release-ficus.master/releasing_course/export_import_course.html#export-a-course'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
...@@ -1266,7 +1267,7 @@ class ToolsExportHelpTest(StudioCourseTest): ...@@ -1266,7 +1267,7 @@ class ToolsExportHelpTest(StudioCourseTest):
And help url should end with 'releasing_course/export_import_course.html#export-a-course' And help url should end with 'releasing_course/export_import_course.html#export-a-course'
""" """
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/' \
'latest/releasing_course/export_import_course.html#export-a-course' 'open-release-ficus.master/releasing_course/export_import_course.html#export-a-course'
# Assert that help link is correct. # Assert that help link is correct.
assert_side_bar_help_link( assert_side_bar_help_link(
...@@ -1298,7 +1299,7 @@ class StudioWelcomeHelpTest(AcceptanceTest): ...@@ -1298,7 +1299,7 @@ class StudioWelcomeHelpTest(AcceptanceTest):
""" """
# The url we want to see in anchor help element. # The url we want to see in anchor help element.
href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \ href = 'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/' \
'en/latest/getting_started/get_started.html' 'en/open-release-ficus.master/getting_started/get_started.html'
# Assert that help link is correct. # Assert that help link is correct.
assert_nav_help_link( assert_nav_help_link(
......
...@@ -211,7 +211,7 @@ ECOMMERCE_API_URL = 'http://localhost:8043/api/v2/' ...@@ -211,7 +211,7 @@ ECOMMERCE_API_URL = 'http://localhost:8043/api/v2/'
ECOMMERCE_API_SIGNING_KEY = 'ecommerce-key' ECOMMERCE_API_SIGNING_KEY = 'ecommerce-key'
LMS_ROOT_URL = "http://localhost:8000" LMS_ROOT_URL = "http://localhost:8000"
DOC_LINK_BASE_URL = 'http://edx.readthedocs.io/projects/edx-guide-for-students' DOC_LINK_BASE_URL = 'http://edx.readthedocs.io/projects/open-edx-learner-guide'
##################################################################### #####################################################################
# Lastly, see if the developer has any local overrides. # Lastly, see if the developer has any local overrides.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment