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
ceb0fc79
Commit
ceb0fc79
authored
Jun 03, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tests to match text changes
parent
2c740594
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lms/djangoapps/instructor/tests/test_api.py
+2
-2
lms/djangoapps/instructor/tests/test_ecommerce.py
+3
-3
No files found.
lms/djangoapps/instructor/tests/test_api.py
View file @
ceb0fc79
...
@@ -2102,7 +2102,7 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa
...
@@ -2102,7 +2102,7 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa
# check that the coupon redeem count should be 0
# check that the coupon redeem count should be 0
resp
=
self
.
client
.
get
(
instructor_dashboard
)
resp
=
self
.
client
.
get
(
instructor_dashboard
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
self
.
assertIn
(
'
Redeem Count
'
,
resp
.
content
)
self
.
assertIn
(
'
Number Redeemed
'
,
resp
.
content
)
self
.
assertIn
(
'<td>0</td>'
,
resp
.
content
)
self
.
assertIn
(
'<td>0</td>'
,
resp
.
content
)
# now make the payment of your cart items
# now make the payment of your cart items
...
@@ -2112,7 +2112,7 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa
...
@@ -2112,7 +2112,7 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa
resp
=
self
.
client
.
get
(
instructor_dashboard
)
resp
=
self
.
client
.
get
(
instructor_dashboard
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
self
.
assertIn
(
'
Redeem Count
'
,
resp
.
content
)
self
.
assertIn
(
'
Number Redeemed
'
,
resp
.
content
)
self
.
assertIn
(
'<td>1</td>'
,
resp
.
content
)
self
.
assertIn
(
'<td>1</td>'
,
resp
.
content
)
def
test_get_sale_records_features_csv
(
self
):
def
test_get_sale_records_features_csv
(
self
):
...
...
lms/djangoapps/instructor/tests/test_ecommerce.py
View file @
ceb0fc79
...
@@ -46,7 +46,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase):
...
@@ -46,7 +46,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase):
response
=
self
.
client
.
get
(
self
.
url
)
response
=
self
.
client
.
get
(
self
.
url
)
self
.
assertTrue
(
self
.
e_commerce_link
in
response
.
content
)
self
.
assertTrue
(
self
.
e_commerce_link
in
response
.
content
)
# Coupons should show up for White Label sites with priced honor modes.
# Coupons should show up for White Label sites with priced honor modes.
self
.
assertTrue
(
'Coupon
s
'
in
response
.
content
)
self
.
assertTrue
(
'Coupon
Code List
'
in
response
.
content
)
def
test_user_has_finance_admin_rights_in_e_commerce_tab
(
self
):
def
test_user_has_finance_admin_rights_in_e_commerce_tab
(
self
):
response
=
self
.
client
.
get
(
self
.
url
)
response
=
self
.
client
.
get
(
self
.
url
)
...
@@ -77,7 +77,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase):
...
@@ -77,7 +77,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase):
course_honor_mode
=
CourseMode
.
mode_for_course
(
self
.
course
.
id
,
'honor'
)
course_honor_mode
=
CourseMode
.
mode_for_course
(
self
.
course
.
id
,
'honor'
)
price
=
course_honor_mode
.
min_price
price
=
course_honor_mode
.
min_price
self
.
assertTrue
(
'Course
Price
: <span>$'
+
str
(
price
)
+
'</span>'
in
response
.
content
)
self
.
assertTrue
(
'Course
price per seat
: <span>$'
+
str
(
price
)
+
'</span>'
in
response
.
content
)
self
.
assertFalse
(
'+ Set Price</a></span>'
in
response
.
content
)
self
.
assertFalse
(
'+ Set Price</a></span>'
in
response
.
content
)
# removing the course finance_admin role of login user
# removing the course finance_admin role of login user
...
@@ -109,7 +109,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase):
...
@@ -109,7 +109,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase):
url
=
reverse
(
'instructor_dashboard'
,
kwargs
=
{
'course_id'
:
self
.
course
.
id
.
to_deprecated_string
()})
url
=
reverse
(
'instructor_dashboard'
,
kwargs
=
{
'course_id'
:
self
.
course
.
id
.
to_deprecated_string
()})
response
=
self
.
client
.
get
(
url
)
response
=
self
.
client
.
get
(
url
)
self
.
assertTrue
(
'Course
Price
: <span>$'
+
str
(
price
)
+
'</span>'
in
response
.
content
)
self
.
assertTrue
(
'Course
price per seat
: <span>$'
+
str
(
price
)
+
'</span>'
in
response
.
content
)
def
test_user_admin_set_course_price
(
self
):
def
test_user_admin_set_course_price
(
self
):
"""
"""
...
...
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