mirror of https://github.com/django/django.git
Added a return value to the test frameworks TestSMTPConnection.send_messages, to match the real implementation. Thanks for the suggestion and fix, Michael <absoludity@gmail.com>.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5899 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
01adbb55e6
commit
f4d4936abf
|
@ -36,6 +36,7 @@ class TestSMTPConnection(object):
|
||||||
def send_messages(self, messages):
|
def send_messages(self, messages):
|
||||||
"Redirect messages to the dummy outbox"
|
"Redirect messages to the dummy outbox"
|
||||||
mail.outbox.extend(messages)
|
mail.outbox.extend(messages)
|
||||||
|
return len(messages)
|
||||||
|
|
||||||
def setup_test_environment():
|
def setup_test_environment():
|
||||||
"""Perform any global pre-test setup. This involves:
|
"""Perform any global pre-test setup. This involves:
|
||||||
|
|
Loading…
Reference in New Issue