Django

Code

Changeset 5206

Show
Ignore:
Timestamp:
05/12/07 10:35:11 (2 years ago)
Author:
adrian
Message:

Changed 'email' to 'e-mail' in docs/testing.txt, to fit our consistent style

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/testing.txt

    r5179 r5206  
    178178* `Test Client`_ 
    179179* `TestCase`_ 
    180 * `Email services`_ 
     180* `E-mail services`_ 
    181181 
    182182Test Client 
     
    460460 
    461461At the start of each test case, in addition to installing fixtures, 
    462 Django clears the contents of the test email outbox. 
    463  
    464 For more detail on email services during tests, see `Email services`_. 
     462Django clears the contents of the test e-mail outbox. 
     463 
     464For more detail on e-mail services during tests, see `E-mail services`_. 
    465465 
    466466Assertions 
     
    503503    response. 
    504504 
    505 Email services 
     505E-mail services 
    506506-------------- 
     507 
    507508**New in Django development version** 
    508509 
    509 If your view makes use of the `Django email services`_, you don't really 
    510 want email to be sent every time you run a test using that view. 
     510If your view makes use of the `Django e-mail services`_, you don't really 
     511want e-mail to be sent every time you run a test using that view. 
    511512 
    512513When the Django test framework is initialized, it transparently replaces the 
    513514normal `SMTPConnection`_ class with a dummy implementation that redirects all 
    514 email to a dummy outbox. This outbox, stored as ``django.core.mail.outbox``, 
     515e-mail to a dummy outbox. This outbox, stored as ``django.core.mail.outbox``, 
    515516is a simple list of all `EmailMessage`_ instances that have been sent. 
    516517For example, during test conditions, it would be possible to run the following 
     
    542543    mail.outbox = [] 
    543544 
    544 .. _`Django email services`: ../email/ 
     545.. _`Django e-mail services`: ../email/ 
    545546.. _`SMTPConnection`: ../email/#the-emailmessage-and-smtpconnection-classes 
    546547.. _`EmailMessage`: ../email/#the-emailmessage-and-smtpconnection-classes 
     
    670671``teardown_test_environment()`` 
    671672    Performs any global post-test teardown, such as removing the instrumentation 
    672     of the template rendering system and restoring normal email services. 
     673    of the template rendering system and restoring normal e-mail services. 
    673674 
    674675``create_test_db(verbosity=1, autoclobber=False)``