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
b741ce78
Commit
b741ce78
authored
Jun 16, 2015
by
Chris Dodge
Committed by
Davorin Sego
Jul 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix python unit tests
parent
2972e911
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
common/djangoapps/terrain/steps.py
+1
-1
lms/djangoapps/branding/tests/test_page.py
+3
-3
lms/static/js/discovery/result_list_view.js
+1
-1
lms/templates/courseware/courses.html
+2
-2
No files found.
common/djangoapps/terrain/steps.py
View file @
b741ce78
...
...
@@ -65,7 +65,7 @@ def i_should_be_on_the_dashboard(step):
@step
(
u'I (?:visit|access|open) the courses page$'
)
def
i_am_on_the_courses_page
(
step
):
world
.
visit
(
'/courses'
)
assert
world
.
is_css_present
(
'
section
.courses'
)
assert
world
.
is_css_present
(
'
div
.courses'
)
@step
(
u'I press the "([^"]*)" button$'
)
...
...
lms/djangoapps/branding/tests/test_page.py
View file @
b741ce78
...
...
@@ -220,7 +220,7 @@ class IndexPageCourseCardsSortingTests(ModuleStoreTestCase):
self
.
assertNotIn
(
'<aside aria-label="Refine your search" class="search-facets phone-menu">'
,
response
.
content
)
# make sure we have the special css class on the section
self
.
assertIn
(
'<
section class="courses no-course-discovery">
'
,
response
.
content
)
self
.
assertIn
(
'<
div class="courses no-course-discovery"
'
,
response
.
content
)
@patch
(
'student.views.render_to_response'
,
RENDER_MOCK
)
@patch
(
'courseware.views.render_to_response'
,
RENDER_MOCK
)
...
...
@@ -239,10 +239,10 @@ class IndexPageCourseCardsSortingTests(ModuleStoreTestCase):
response
=
self
.
client
.
get
(
reverse
(
'branding.views.courses'
))
self
.
assertEqual
(
response
.
status_code
,
200
)
# assert that the course discovery UI is
not
present
# assert that the course discovery UI is present
self
.
assertIn
(
'Search for a course'
,
response
.
content
)
self
.
assertIn
(
'<aside aria-label="Refine your search" class="search-facets phone-menu">'
,
response
.
content
)
self
.
assertIn
(
'<
section class="courses">
'
,
response
.
content
)
self
.
assertIn
(
'<
div class="courses"
'
,
response
.
content
)
@patch
(
'student.views.render_to_response'
,
RENDER_MOCK
)
@patch
(
'courseware.views.render_to_response'
,
RENDER_MOCK
)
...
...
lms/static/js/discovery/result_list_view.js
View file @
b741ce78
...
...
@@ -11,7 +11,7 @@ define([
return
Backbone
.
View
.
extend
({
el
:
'
section
.courses'
,
el
:
'
div
.courses'
,
$window
:
$
(
window
),
$document
:
$
(
document
),
...
...
lms/templates/courseware/courses.html
View file @
b741ce78
...
...
@@ -78,7 +78,7 @@
</div>
% endif
<
section
class=
"courses
${'' if course_discovery_enabled else ' no-course-discovery'}"
role=
"region"
aria-label=
"${_('List of Courses')}"
>
<
div
class=
"courses
${'' if course_discovery_enabled else ' no-course-discovery'}"
role=
"region"
aria-label=
"${_('List of Courses')}"
>
<ul
class=
"courses-listing"
>
%for course in courses:
<li
class=
"courses-listing-item"
>
...
...
@@ -86,7 +86,7 @@
</li>
%endfor
</ul>
</
section
>
</
div
>
% if course_discovery_enabled:
...
...
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