Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f7b08b16
Commit
f7b08b16
authored
Mar 17, 2017
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt the tests to openedx.core.release.doc_version()
parent
60221dcc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
180 additions
and
101 deletions
+180
-101
common/djangoapps/util/tests/test_help_context_processor.py
+11
-20
common/test/acceptance/tests/lms/test_lms_help.py
+11
-4
common/test/acceptance/tests/studio/test_studio_help.py
+158
-77
No files found.
common/djangoapps/util/tests/test_help_context_processor.py
View file @
f7b08b16
...
@@ -8,6 +8,7 @@ from mock import patch
...
@@ -8,6 +8,7 @@ from mock import patch
from
django.conf
import
settings
from
django.conf
import
settings
from
django.test
import
TestCase
from
django.test
import
TestCase
from
openedx.core.release
import
doc_version
from
util.help_context_processor
import
common_doc_url
from
util.help_context_processor
import
common_doc_url
...
@@ -33,34 +34,24 @@ class HelpContextProcessorTest(TestCase):
...
@@ -33,34 +34,24 @@ class HelpContextProcessorTest(TestCase):
def
test_get_doc_url
(
self
):
def
test_get_doc_url
(
self
):
# Test default values.
# Test default values.
self
.
assertRegexpMatches
(
doc
=
"http://edx.readthedocs.io/projects/open-edx-learner-guide/en/{}/index.html"
self
.
_get_doc_url
(),
self
.
assertEqual
(
self
.
_get_doc_url
(),
doc
.
format
(
doc_version
()))
"http://edx.readthedocs.io/projects/open-edx-learner-guide/en/.*/index.html"
)
# Provide a known page_token.
# Provide a known page_token.
self
.
assertRegexpMatches
(
doc
=
"http://edx.readthedocs.io/projects/open-edx-learner-guide/en/{}/sfd_dashboard_profile/index.html"
self
.
_get_doc_url
(
'profile'
),
self
.
assertEqual
(
self
.
_get_doc_url
(
'profile'
),
doc
.
format
(
doc_version
()))
"http://edx.readthedocs.io/projects/open-edx-learner-guide/en/.*/sfd_dashboard_profile/index.html"
)
# Use settings.DOC_LINK_BASE_URL to override default base_url.
# Use settings.DOC_LINK_BASE_URL to override default base_url.
doc
=
"settings_base_url/en/{}/SFD_instructor_dash_help.html"
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
.
assertRegexpMatches
(
self
.
assertEqual
(
self
.
_get_doc_url
(
'instructor'
),
doc
.
format
(
doc_version
()))
self
.
_get_doc_url
(
'instructor'
),
"settings_base_url/en/.*/SFD_instructor_dash_help.html"
)
def
test_get_pdf_url
(
self
):
def
test_get_pdf_url
(
self
):
# Test default values.
# Test default values.
self
.
assertRegexpMatches
(
doc
=
"https://media.readthedocs.org/pdf/open-edx-learner-guide/{}/open-edx-learner-guide.pdf"
self
.
_get_pdf_url
(),
self
.
assertEqual
(
self
.
_get_pdf_url
(),
doc
.
format
(
doc_version
()))
"https://media.readthedocs.org/pdf/open-edx-learner-guide/.*/open-edx-learner-guide.pdf"
)
# Use settings.DOC_LINK_BASE_URL to override default base_url.
# Use settings.DOC_LINK_BASE_URL to override default base_url.
doc
=
"settings_base_url/{}/open-edx-learner-guide.pdf"
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
.
assertRegexpMatches
(
self
.
assertEqual
(
self
.
_get_pdf_url
(),
doc
.
format
(
doc_version
()))
self
.
_get_pdf_url
(),
"settings_base_url/.*/open-edx-learner-guide.pdf"
)
common/test/acceptance/tests/lms/test_lms_help.py
View file @
f7b08b16
...
@@ -3,7 +3,6 @@ Test Help links in LMS
...
@@ -3,7 +3,6 @@ Test Help links in LMS
"""
"""
import
json
import
json
from
common.test.acceptance.tests.lms.test_lms_instructor_dashboard
import
BaseInstructorDashboardTest
from
common.test.acceptance.tests.lms.test_lms_instructor_dashboard
import
BaseInstructorDashboardTest
from
common.test.acceptance.pages.lms.instructor_dashboard
import
InstructorDashboardPage
from
common.test.acceptance.pages.lms.instructor_dashboard
import
InstructorDashboardPage
from
common.test.acceptance.tests.studio.base_studio_test
import
ContainerBase
from
common.test.acceptance.tests.studio.base_studio_test
import
ContainerBase
...
@@ -15,6 +14,8 @@ from common.test.acceptance.tests.helpers import (
...
@@ -15,6 +14,8 @@ from common.test.acceptance.tests.helpers import (
assert_opened_help_link_is_correct
assert_opened_help_link_is_correct
)
)
from
openedx.core.release
import
doc_version
class
TestCohortHelp
(
ContainerBase
):
class
TestCohortHelp
(
ContainerBase
):
"""
"""
...
@@ -66,8 +67,10 @@ class TestCohortHelp(ContainerBase):
...
@@ -66,8 +67,10 @@ 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/edx-partner-course-staff/en/{}/'
'course_features/cohorts/cohort_config.html#assign-learners-to-cohorts-manually'
'course_features/cohorts/cohort_config.html#assign-learners-to-cohorts-manually'
)
.
format
(
doc_version
())
self
.
verify_help_link
(
href
)
self
.
verify_help_link
(
href
)
...
@@ -86,8 +89,10 @@ class TestCohortHelp(ContainerBase):
...
@@ -86,8 +89,10 @@ 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/edx-partner-course-staff/en/{}/'
'course_features/cohorts/cohorts_overview.html#all-automated-assignment'
'course_features/cohorts/cohorts_overview.html#all-automated-assignment'
)
.
format
(
doc_version
())
self
.
verify_help_link
(
href
)
self
.
verify_help_link
(
href
)
...
@@ -119,6 +124,8 @@ class InstructorDashboardHelp(BaseInstructorDashboardTest):
...
@@ -119,6 +124,8 @@ 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/edx-guide-for-students/en/{}/SFD_instructor_dash_help.html'
)
.
format
(
doc_version
())
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
)
common/test/acceptance/tests/studio/test_studio_help.py
View file @
f7b08b16
...
@@ -34,6 +34,8 @@ from common.test.acceptance.tests.helpers import (
...
@@ -34,6 +34,8 @@ from common.test.acceptance.tests.helpers import (
from
common.test.acceptance.pages.studio.import_export
import
ExportLibraryPage
,
ImportLibraryPage
from
common.test.acceptance.pages.studio.import_export
import
ExportLibraryPage
,
ImportLibraryPage
from
common.test.acceptance.pages.studio.auto_auth
import
AutoAuthPage
from
common.test.acceptance.pages.studio.auto_auth
import
AutoAuthPage
from
openedx.core.release
import
doc_version
@attr
(
shard
=
10
)
@attr
(
shard
=
10
)
class
StudioHelpTest
(
StudioCourseTest
):
class
StudioHelpTest
(
StudioCourseTest
):
...
@@ -96,8 +98,10 @@ class SignInHelpTest(AcceptanceTest):
...
@@ -96,8 +98,10 @@ 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
=
(
'en/latest/getting_started/get_started.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/getting_started/get_started.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -129,8 +133,10 @@ class SignUpHelpTest(AcceptanceTest):
...
@@ -129,8 +133,10 @@ 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
=
(
'en/latest/getting_started/get_started.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/getting_started/get_started.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -161,8 +167,10 @@ class HomeHelpTest(StudioCourseTest):
...
@@ -161,8 +167,10 @@ class HomeHelpTest(StudioCourseTest):
And help url should end with 'getting_started/get_started.html'
And help url should end with 'getting_started/get_started.html'
"""
"""
# 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
=
(
'en/latest/getting_started/get_started.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/getting_started/get_started.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -181,8 +189,10 @@ class HomeHelpTest(StudioCourseTest):
...
@@ -181,8 +189,10 @@ class HomeHelpTest(StudioCourseTest):
And help url should end with 'getting_started/get_started.html'
And help url should end with 'getting_started/get_started.html'
"""
"""
# 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
=
(
'en/latest/getting_started/get_started.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/getting_started/get_started.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -218,8 +228,10 @@ class NewCourseHelpTest(AcceptanceTest):
...
@@ -218,8 +228,10 @@ class NewCourseHelpTest(AcceptanceTest):
And help url should end with 'getting_started/get_started.html'
And help url should end with 'getting_started/get_started.html'
"""
"""
# 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
=
(
'/en/latest/getting_started/get_started.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course'
'/en/{}/getting_started/get_started.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -238,8 +250,10 @@ class NewCourseHelpTest(AcceptanceTest):
...
@@ -238,8 +250,10 @@ class NewCourseHelpTest(AcceptanceTest):
And help url should end with 'getting_started/get_started.html'
And help url should end with 'getting_started/get_started.html'
"""
"""
# 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
=
(
'en/latest/getting_started/get_started.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/getting_started/get_started.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -275,8 +289,10 @@ class NewLibraryHelpTest(AcceptanceTest):
...
@@ -275,8 +289,10 @@ class NewLibraryHelpTest(AcceptanceTest):
And help url should end with 'getting_started/get_started.html'
And help url should end with 'getting_started/get_started.html'
"""
"""
# 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
=
(
'en/latest/getting_started/get_started.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/getting_started/get_started.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -295,8 +311,10 @@ class NewLibraryHelpTest(AcceptanceTest):
...
@@ -295,8 +311,10 @@ class NewLibraryHelpTest(AcceptanceTest):
And help url should end with 'getting_started/get_started.html'
And help url should end with 'getting_started/get_started.html'
"""
"""
# 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
=
(
'en/latest/getting_started/get_started.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/getting_started/get_started.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -332,8 +350,10 @@ class LibraryTabHelpTest(AcceptanceTest):
...
@@ -332,8 +350,10 @@ class LibraryTabHelpTest(AcceptanceTest):
self
.
assertTrue
(
self
.
dashboard_page
.
has_new_library_button
)
self
.
assertTrue
(
self
.
dashboard_page
.
has_new_library_button
)
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
=
(
'en/latest/getting_started/get_started.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/getting_started/get_started.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -365,8 +385,10 @@ class LibraryHelpTest(StudioLibraryTest):
...
@@ -365,8 +385,10 @@ 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
=
(
"en/latest/course_components/libraries.html"
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/course_components/libraries.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -387,8 +409,10 @@ class LibraryHelpTest(StudioLibraryTest):
...
@@ -387,8 +409,10 @@ 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
=
(
'en/latest/course_components/libraries.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/course_components/libraries.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -411,8 +435,10 @@ class LibraryHelpTest(StudioLibraryTest):
...
@@ -411,8 +435,10 @@ 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
=
(
'latest/course_components/libraries.html#give-other-users-access-to-your-library'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/course_components/libraries.html#give-other-users-access-to-your-library'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -442,8 +468,10 @@ class LibraryImportHelpTest(StudioLibraryTest):
...
@@ -442,8 +468,10 @@ class LibraryImportHelpTest(StudioLibraryTest):
And help url should end with 'creating_content/libraries.html#import-a-library'
And help url should end with 'creating_content/libraries.html#import-a-library'
"""
"""
# 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
=
(
'latest/course_components/libraries.html#import-a-library'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/'
'{}/course_components/libraries.html#import-a-library'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -462,8 +490,10 @@ class LibraryImportHelpTest(StudioLibraryTest):
...
@@ -462,8 +490,10 @@ class LibraryImportHelpTest(StudioLibraryTest):
And help url should end with 'creating_content/libraries.html#import-a-library'
And help url should end with 'creating_content/libraries.html#import-a-library'
"""
"""
# 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
=
(
'latest/course_components/libraries.html#import-a-library'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/'
'{}/course_components/libraries.html#import-a-library'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -494,8 +524,10 @@ class LibraryExportHelpTest(StudioLibraryTest):
...
@@ -494,8 +524,10 @@ class LibraryExportHelpTest(StudioLibraryTest):
And help url should end with 'creating_content/libraries.html#export-a-library'
And help url should end with 'creating_content/libraries.html#export-a-library'
"""
"""
# 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
=
(
'latest/course_components/libraries.html#export-a-library'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/'
'{}/course_components/libraries.html#export-a-library'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -514,8 +546,10 @@ class LibraryExportHelpTest(StudioLibraryTest):
...
@@ -514,8 +546,10 @@ class LibraryExportHelpTest(StudioLibraryTest):
And help url should end with 'creating_content/libraries.html#export-a-library'
And help url should end with 'creating_content/libraries.html#export-a-library'
"""
"""
# 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
=
(
'latest/course_components/libraries.html#export-a-library'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/'
'{}/course_components/libraries.html#export-a-library'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -551,8 +585,10 @@ class CourseOutlineHelpTest(StudioCourseTest):
...
@@ -551,8 +585,10 @@ class CourseOutlineHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'/en/latest/developing_course/course_outline.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course'
'/en/{}/developing_course/course_outline.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -570,8 +606,10 @@ class CourseOutlineHelpTest(StudioCourseTest):
...
@@ -570,8 +606,10 @@ class CourseOutlineHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'/en/latest/developing_course/course_outline.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course'
'/en/{}/developing_course/course_outline.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -607,8 +645,10 @@ class CourseUpdateHelpTest(StudioCourseTest):
...
@@ -607,8 +645,10 @@ class CourseUpdateHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'en/latest/course_assets/handouts_updates.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/course_assets/handouts_updates.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -642,8 +682,10 @@ class AssetIndexHelpTest(StudioCourseTest):
...
@@ -642,8 +682,10 @@ class AssetIndexHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'en/latest/course_assets/course_files.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/course_assets/course_files.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -661,8 +703,10 @@ class AssetIndexHelpTest(StudioCourseTest):
...
@@ -661,8 +703,10 @@ class AssetIndexHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'en/latest/course_assets/course_files.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/course_assets/course_files.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -697,8 +741,10 @@ class CoursePagesHelpTest(StudioCourseTest):
...
@@ -697,8 +741,10 @@ class CoursePagesHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'en/latest/course_assets/pages.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/course_assets/pages.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -732,8 +778,10 @@ class UploadTextbookHelpTest(StudioCourseTest):
...
@@ -732,8 +778,10 @@ class UploadTextbookHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'/en/latest/course_assets/textbooks.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course'
'/en/{}/course_assets/textbooks.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -751,8 +799,10 @@ class UploadTextbookHelpTest(StudioCourseTest):
...
@@ -751,8 +799,10 @@ class UploadTextbookHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'/en/latest/course_assets/textbooks.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course'
'/en/{}/course_assets/textbooks.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -802,8 +852,10 @@ class StudioUnitHelpTest(ContainerBase):
...
@@ -802,8 +852,10 @@ class StudioUnitHelpTest(ContainerBase):
And help url should end with 'developing_course/course_units.html'
And help url should end with 'developing_course/course_units.html'
"""
"""
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
=
(
'/en/latest/developing_course/course_units.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course'
'/en/{}/developing_course/course_units.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -839,8 +891,10 @@ class SettingsHelpTest(StudioCourseTest):
...
@@ -839,8 +891,10 @@ class SettingsHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'/en/latest/set_up_course/setting_up_student_view.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course'
'/en/{}/set_up_course/setting_up_student_view.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -876,8 +930,10 @@ class GradingPageHelpTest(StudioCourseTest):
...
@@ -876,8 +930,10 @@ class GradingPageHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'en/latest/grading/index.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/grading/index.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -913,8 +969,10 @@ class CourseTeamSettingsHelpTest(StudioCourseTest):
...
@@ -913,8 +969,10 @@ class CourseTeamSettingsHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'en/latest/set_up_course/course_staffing.html#add-course-team-members'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/set_up_course/course_staffing.html#add-course-team-members'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -951,8 +1009,10 @@ class CourseGroupConfigurationHelpTest(StudioCourseTest):
...
@@ -951,8 +1009,10 @@ class CourseGroupConfigurationHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'en/latest/index.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/index.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -971,8 +1031,10 @@ class CourseGroupConfigurationHelpTest(StudioCourseTest):
...
@@ -971,8 +1031,10 @@ class CourseGroupConfigurationHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'en/latest/course_features/cohorts/cohorted_courseware.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/course_features/cohorts/cohorted_courseware.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -1009,8 +1071,10 @@ class AdvancedSettingHelpTest(StudioCourseTest):
...
@@ -1009,8 +1071,10 @@ class AdvancedSettingHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'/en/latest/index.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course'
'/en/{}/index.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -1046,8 +1110,10 @@ class CertificatePageHelpTest(StudioCourseTest):
...
@@ -1046,8 +1110,10 @@ class CertificatePageHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'/en/latest/set_up_course/creating_course_certificates.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course'
'/en/{}/set_up_course/creating_course_certificates.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -1065,8 +1131,10 @@ class CertificatePageHelpTest(StudioCourseTest):
...
@@ -1065,8 +1131,10 @@ class CertificatePageHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'/en/latest/set_up_course/creating_course_certificates.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course'
'/en/{}/set_up_course/creating_course_certificates.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -1117,8 +1185,11 @@ class GroupExperimentConfigurationHelpTest(ContainerBase):
...
@@ -1117,8 +1185,11 @@ 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/{}/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'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
test
=
self
,
test
=
self
,
...
@@ -1154,8 +1225,10 @@ class ToolsImportHelpTest(StudioCourseTest):
...
@@ -1154,8 +1225,10 @@ class ToolsImportHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'latest/releasing_course/export_import_course.html#import-a-course'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/'
'{}/releasing_course/export_import_course.html#import-a-course'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -1173,8 +1246,10 @@ class ToolsImportHelpTest(StudioCourseTest):
...
@@ -1173,8 +1246,10 @@ class ToolsImportHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'latest/releasing_course/export_import_course.html#import-a-course'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/'
'{}/releasing_course/export_import_course.html#import-a-course'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -1211,8 +1286,10 @@ class ToolsExportHelpTest(StudioCourseTest):
...
@@ -1211,8 +1286,10 @@ class ToolsExportHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'latest/releasing_course/export_import_course.html#export-a-course'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/'
'{}/releasing_course/export_import_course.html#export-a-course'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
@@ -1230,8 +1307,10 @@ class ToolsExportHelpTest(StudioCourseTest):
...
@@ -1230,8 +1307,10 @@ class ToolsExportHelpTest(StudioCourseTest):
Then Help link should open.
Then Help link should open.
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
=
(
'latest/releasing_course/export_import_course.html#export-a-course'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/'
'{}/releasing_course/export_import_course.html#export-a-course'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_side_bar_help_link
(
assert_side_bar_help_link
(
...
@@ -1262,8 +1341,10 @@ class StudioWelcomeHelpTest(AcceptanceTest):
...
@@ -1262,8 +1341,10 @@ class StudioWelcomeHelpTest(AcceptanceTest):
And help url should contain 'getting_started/get_started.html'
And help url should contain 'getting_started/get_started.html'
"""
"""
# 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
=
(
'en/latest/getting_started/get_started.html'
'http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/'
'en/{}/getting_started/get_started.html'
)
.
format
(
doc_version
())
# Assert that help link is correct.
# Assert that help link is correct.
assert_nav_help_link
(
assert_nav_help_link
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment