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
352fce6e
Commit
352fce6e
authored
Dec 13, 2014
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix another analytics.init secret error message (noise).
parent
7be7b50b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
lms/djangoapps/shoppingcart/tests/test_models.py
+5
-1
No files found.
lms/djangoapps/shoppingcart/tests/test_models.py
View file @
352fce6e
...
...
@@ -3,6 +3,7 @@ Tests for the Shopping Cart Models
"""
from
decimal
import
Decimal
import
datetime
import
os
import
smtplib
from
boto.exception
import
BotoServerError
# this is a super-class of SESError and catches connection errors
...
...
@@ -233,7 +234,10 @@ class OrderTest(ModuleStoreTestCase):
item
=
CertificateItem
.
add_to_order
(
cart
,
self
.
course_key
,
self
.
cost
,
'honor'
)
# course enrollment object should be created but still inactive
self
.
assertFalse
(
CourseEnrollment
.
is_enrolled
(
self
.
user
,
self
.
course_key
))
cart
.
purchase
()
# the analytics client pipes output to stderr when using the default client
devnull
=
open
(
os
.
devnull
,
'w'
)
with
patch
(
'sys.stderr'
,
devnull
):
cart
.
purchase
()
self
.
assertTrue
(
CourseEnrollment
.
is_enrolled
(
self
.
user
,
self
.
course_key
))
# test e-mail sending
...
...
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