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:
Russell Keith-Magee 2007-08-16 10:54:28 +00:00
parent 01adbb55e6
commit f4d4936abf
1 changed files with 1 additions and 0 deletions

View File

@ -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: