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
3acf503e
Commit
3acf503e
authored
Mar 17, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7376 from edx/ned/fix-test-instructor-dashboard
Fix test_instructor_dashboard.py tests
parents
37dd0ec8
85d0a45b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
lms/djangoapps/instructor/tests/views/__init__.py
+0
-0
lms/djangoapps/instructor/tests/views/test_instructor_dashboard.py
+2
-1
lms/templates/instructor/instructor_dashboard_2/e-commerce.html
+1
-1
No files found.
lms/djangoapps/instructor/tests/views/__init__.py
0 → 100644
View file @
3acf503e
lms/djangoapps/instructor/tests/views/test_instructor_dashboard.py
View file @
3acf503e
...
@@ -25,6 +25,7 @@ class TestInstructorDashboard(ModuleStoreTestCase, LoginEnrollmentTestCase):
...
@@ -25,6 +25,7 @@ class TestInstructorDashboard(ModuleStoreTestCase, LoginEnrollmentTestCase):
"""
"""
Set up tests
Set up tests
"""
"""
super
(
TestInstructorDashboard
,
self
)
.
setUp
()
self
.
course
=
CourseFactory
.
create
()
self
.
course
=
CourseFactory
.
create
()
self
.
course_mode
=
CourseMode
(
course_id
=
self
.
course
.
id
,
self
.
course_mode
=
CourseMode
(
course_id
=
self
.
course
.
id
,
...
@@ -76,7 +77,7 @@ class TestInstructorDashboard(ModuleStoreTestCase, LoginEnrollmentTestCase):
...
@@ -76,7 +77,7 @@ class TestInstructorDashboard(ModuleStoreTestCase, LoginEnrollmentTestCase):
CourseFinanceAdminRole
(
self
.
course
.
id
)
.
add_users
(
self
.
instructor
)
CourseFinanceAdminRole
(
self
.
course
.
id
)
.
add_users
(
self
.
instructor
)
total_amount
=
PaidCourseRegistration
.
get_total_amount_of_purchased_item
(
self
.
course
.
id
)
total_amount
=
PaidCourseRegistration
.
get_total_amount_of_purchased_item
(
self
.
course
.
id
)
response
=
self
.
client
.
get
(
self
.
url
)
response
=
self
.
client
.
get
(
self
.
url
)
self
.
assert
True
(
'{currency}{amount}'
.
format
(
currency
=
'Rs'
,
amount
=
total_amount
)
in
response
.
content
)
self
.
assert
In
(
'{currency}{amount}'
.
format
(
currency
=
'Rs'
,
amount
=
total_amount
),
response
.
content
)
@patch.dict
(
settings
.
FEATURES
,
{
'DISPLAY_ANALYTICS_ENROLLMENTS'
:
False
})
@patch.dict
(
settings
.
FEATURES
,
{
'DISPLAY_ANALYTICS_ENROLLMENTS'
:
False
})
@override_settings
(
ANALYTICS_DASHBOARD_URL
=
''
)
@override_settings
(
ANALYTICS_DASHBOARD_URL
=
''
)
...
...
lms/templates/instructor/instructor_dashboard_2/e-commerce.html
View file @
3acf503e
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<h2>
${_("Sales")}
</h2>
<h2>
${_("Sales")}
</h2>
<div>
<div>
%if section_data['total_amount'] is not None:
%if section_data['total_amount'] is not None:
<span><strong>
${_("Total Credit Card Purchases: ")}
</strong></span><span>
$${section_data['total_amount']}
</span>
<span><strong>
${_("Total Credit Card Purchases: ")}
</strong></span><span>
$
{section_data['currency_symbol']}
${section_data['total_amount']}
</span>
%endif
%endif
<span
class=
"csv_tip"
>
<span
class=
"csv_tip"
>
<div>
<div>
...
...
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