Re: [Tutor] Writing unit tests that involve email

2013-07-16 Thread Steven D'Aprano
On 17/07/13 13:34, Arnel Legaspi wrote: the trouble I have is on making the unit tests run such that it will force the script I'm testing to send the email. If I just use the script on my own, it does send the emails, no problem. With the unit tests I've written, it's not doing so. How does y

Re: [Tutor] Writing unit tests that involve email

2013-07-16 Thread Steven D'Aprano
On 14/07/13 10:32, Arnel Legaspi wrote: [...] What I'm having difficulty is getting the unit tests to properly run the script being tested and send the email, get the proper Maildir message, and be able to read it via the unit test script. Right now, even when the SMTP server is not running, all

Re: [Tutor] Writing unit tests that involve email

2013-07-15 Thread Steven D'Aprano
On 16/07/13 09:16, Arnel Legaspi wrote: Hello, Is there any other information needed here so I can get help re: my unit tests? Perhaps I did something wrong with my post? Hi Arnel, Sorry, your post was big and had a lot of detail, and I put it aside to read later, but real life has interven

Re: [Tutor] Writing unit tests that involve email

2013-07-15 Thread Arnel Legaspi
On Sun, Jul 14, 2013 at 8:32 AM, Arnel Legaspi wrote: > Hello, > > I have written a small Python script that allows the user to post to > their blogs via email, converting the draft written in Markdown & > sending it to a blog's email address (like what they had in Posterous > back then). > > htt