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
4f9e5109
Commit
4f9e5109
authored
Aug 30, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove vestigal references to fake_smtp_server
parent
ca33a1dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
lms/djangoapps/bulk_email/tests/test_err_handling.py
+0
-9
No files found.
lms/djangoapps/bulk_email/tests/test_err_handling.py
View file @
4f9e5109
...
...
@@ -18,8 +18,6 @@ from bulk_email.tasks import delegate_email_batches
from
mock
import
patch
,
Mock
from
smtplib
import
SMTPDataError
,
SMTPServerDisconnected
,
SMTPConnectError
TEST_SMTP_PORT
=
1025
class
EmailTestException
(
Exception
):
pass
...
...
@@ -38,14 +36,9 @@ class TestEmailErrors(ModuleStoreTestCase):
# load initial content (since we don't run migrations as part of tests):
call_command
(
"loaddata"
,
"course_email_template.json"
)
#self.smtp_server_thread = FakeSMTPServerThread('localhost', TEST_SMTP_PORT)
#self.smtp_server_thread.start()
self
.
url
=
reverse
(
'instructor_dashboard'
,
kwargs
=
{
'course_id'
:
self
.
course
.
id
})
def
tearDown
(
self
):
#self.smtp_server_thread.stop()
patch
.
stopall
()
@patch
(
'bulk_email.tasks.get_connection'
,
autospec
=
True
)
...
...
@@ -124,8 +117,6 @@ class TestEmailErrors(ModuleStoreTestCase):
"""
Test that celery handles SMTPConnectError by retrying.
"""
# SMTP reply is already specified in fake SMTP Channel created
#self.smtp_server_thread.server.set_errtype("CONN")
get_conn
.
return_value
.
open
.
side_effect
=
SMTPConnectError
(
424
,
"Bad Connection"
)
test_email
=
{
...
...
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