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
68ccf6fc
Commit
68ccf6fc
authored
Dec 20, 2017
by
Alex Dusenbery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSPR-2021 patch directly onto edx:master
parent
d00697f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
common/test/acceptance/tests/lms/test_lms.py
+2
-4
lms/djangoapps/course_wiki/tests/tests.py
+1
-0
lms/djangoapps/course_wiki/views.py
+1
-1
No files found.
common/test/acceptance/tests/lms/test_lms.py
View file @
68ccf6fc
...
@@ -709,10 +709,8 @@ class HighLevelTabTest(UniqueCourseTest):
...
@@ -709,10 +709,8 @@ class HighLevelTabTest(UniqueCourseTest):
self
.
assertTrue
(
self
.
tab_nav
.
is_on_tab
(
'Wiki'
))
self
.
assertTrue
(
self
.
tab_nav
.
is_on_tab
(
'Wiki'
))
# Assert that a default wiki is created
# Assert that a default wiki is created
expected_article_name
=
"{org}.{course_number}.{course_run}"
.
format
(
expected_article_name
=
"{course_name}"
.
format
(
org
=
self
.
course_info
[
'org'
],
course_name
=
self
.
course_info
[
'display_name'
]
course_number
=
self
.
course_info
[
'number'
],
course_run
=
self
.
course_info
[
'run'
]
)
)
self
.
assertEqual
(
expected_article_name
,
course_wiki
.
article_name
)
self
.
assertEqual
(
expected_article_name
,
course_wiki
.
article_name
)
...
...
lms/djangoapps/course_wiki/tests/tests.py
View file @
68ccf6fc
...
@@ -104,6 +104,7 @@ class WikiRedirectTestCase(EnterpriseTestConsentRequired, LoginEnrollmentTestCas
...
@@ -104,6 +104,7 @@ class WikiRedirectTestCase(EnterpriseTestConsentRequired, LoginEnrollmentTestCas
self
.
assertEquals
(
resp
.
status_code
,
200
)
self
.
assertEquals
(
resp
.
status_code
,
200
)
self
.
has_course_navigator
(
resp
)
self
.
has_course_navigator
(
resp
)
self
.
assertContains
(
resp
,
'<h3 class="entry-title">{}</h3>'
.
format
(
course
.
display_name_with_default
))
def
has_course_navigator
(
self
,
resp
):
def
has_course_navigator
(
self
,
resp
):
"""
"""
...
...
lms/djangoapps/course_wiki/views.py
View file @
68ccf6fc
...
@@ -83,7 +83,7 @@ def course_wiki_redirect(request, course_id, wiki_path=""): # pylint: disable=u
...
@@ -83,7 +83,7 @@ def course_wiki_redirect(request, course_id, wiki_path=""): # pylint: disable=u
urlpath
=
URLPath
.
create_article
(
urlpath
=
URLPath
.
create_article
(
root
,
root
,
course_slug
,
course_slug
,
title
=
course
_slug
,
title
=
course
.
display_name_with_default
,
content
=
content
,
content
=
content
,
user_message
=
_
(
"Course page automatically created."
),
user_message
=
_
(
"Course page automatically created."
),
user
=
None
,
user
=
None
,
...
...
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