Re: Testing email with the testserver

2010-03-26 Thread Russell Keith-Magee
On Fri, Mar 26, 2010 at 11:29 PM, Ben Gerdemann wrote: > I found the Django documentation about testing E-mail services > confusing. It says here > http://docs.djangoproject.com/en/1.1/topics/testing/#e-mail-services > "Django's test runner automatically redirects all

Re: Testing email with the testserver

2010-03-26 Thread Phlip
Ben Gerdemann wrote: > I am using "manage.py testserver" and Selenium to drive the browser. Therefor you are running thru the real webserver, not its mock. And, incidentally, most testing effort should be in unit tests - Selenium should _only_ test the last mile of integration, where stuff like

Testing email with the testserver

2010-03-26 Thread Ben Gerdemann
I found the Django documentation about testing E-mail services confusing. It says here http://docs.djangoproject.com/en/1.1/topics/testing/#e-mail-services "Django's test runner automatically redirects all Django-sent e-mail to a dummy outbox", but the example code shows using the 'mail' object