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
e83e8817
Commit
e83e8817
authored
Jun 26, 2015
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't i18n test files
parent
ed51fe0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lms/djangoapps/shoppingcart/tests/test_views.py
+3
-3
No files found.
lms/djangoapps/shoppingcart/tests/test_views.py
View file @
e83e8817
...
...
@@ -730,7 +730,7 @@ class ShoppingCartViewsTests(ModuleStoreTestCase):
self
.
login_user
()
resp
=
self
.
client
.
post
(
reverse
(
'shoppingcart.views.add_course_to_cart'
,
args
=
[
'non/existent/course'
]))
self
.
assertEqual
(
resp
.
status_code
,
404
)
self
.
assertIn
(
_
(
"The course you requested does not exist."
)
,
resp
.
content
)
self
.
assertIn
(
"The course you requested does not exist."
,
resp
.
content
)
def
test_add_course_to_cart_success
(
self
):
self
.
login_user
()
...
...
@@ -1924,7 +1924,7 @@ class CSVReportViewsTest(ModuleStoreTestCase):
self
.
assertEqual
(
template
,
'shoppingcart/download_report.html'
)
self
.
assertFalse
(
context
[
'total_count_error'
])
self
.
assertFalse
(
context
[
'date_fmt_error'
])
self
.
assertIn
(
_
(
"Download CSV Reports"
)
,
response
.
content
.
decode
(
'UTF-8'
))
self
.
assertIn
(
"Download CSV Reports"
,
response
.
content
.
decode
(
'UTF-8'
))
@patch
(
'shoppingcart.views.render_to_response'
,
render_mock
)
def
test_report_csv_bad_date
(
self
):
...
...
@@ -1936,7 +1936,7 @@ class CSVReportViewsTest(ModuleStoreTestCase):
self
.
assertEqual
(
template
,
'shoppingcart/download_report.html'
)
self
.
assertFalse
(
context
[
'total_count_error'
])
self
.
assertTrue
(
context
[
'date_fmt_error'
])
self
.
assertIn
(
_
(
"There was an error in your date input. It should be formatted as YYYY-MM-DD"
)
,
self
.
assertIn
(
"There was an error in your date input. It should be formatted as YYYY-MM-DD"
,
response
.
content
.
decode
(
'UTF-8'
))
CORRECT_CSV_NO_DATE_ITEMIZED_PURCHASE
=
",1,purchased,1,40,40,usd,Registration for Course: Robot Super Course,"
...
...
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