Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#9670 closed (invalid)

django.core.mail.outbox doesn't exist anymore, remove from documentation

Reported by: joelpittet Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords: django.core.mail
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I was doing some testing and searching and there are some references in the documentation about "assertEquals(len(mail.outbox), 1)"

but mail.outbox is not defined in the mail module.

http://docs.djangoproject.com/en/dev/topics/testing/#e-mail-services

Change History (2)

comment:1 Changed 8 years ago by Russell Keith-Magee

Resolution: invalid
Status: newclosed

You need to read the documentation more carefully. mail.outbox is a test framework utility. It only exists in the context of a running test suite. It doesn't exist during general runtime. The existence of mail.outbox is validated by the test suite.

comment:2 Changed 8 years ago by (none)

milestone: post-1.0

Milestone post-1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top