Ticket #18 (closed enhancement: fixed)
Patch — Test mode for use of TurboMail in unit tests.
| Reported by: | fs | Owned by: | amcgregor |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | tests | Version: | 2.0.4 |
| Keywords: | patch | Cc: |
Description
In unit tests the interaction of your code under test with the environment should be minimal. If your code sends emails via TurboMail this is a problem as TurboMail will try to contact an external mailserver.
The attached patch introduces a new parameter "mail.testmode" (default: False). If the parameter is set to True, TurboMail will just keep all sent mails in its queue where you can access them with turbomail._queue._queue.get().
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
