summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use lazr.smtptest instead of our own SMTPServer and test SMTPd.Barry Warsaw2009-10-151-60/+0
| | | | | Update the lazr.restful IWebServiceConfiguration implementation to include the new hop_by_hop_headers attribute, by way of BaseWSGIWebServiceConfiguration.
* When testing, the signal.pause() is a problem because the TestableMaster isBarry Warsaw2009-10-151-1/+7
| | | | | never killed with a signal. In the real-world, it is though. So put the .pause() in a method that can be overridden by TestableMaster.
* Set testing threads as daemon so they won't hang.Barry Warsaw2009-06-291-0/+2
| | | | Fix system absolute url.
* More tests for the REST server, this time, for the queue runner.Barry Warsaw2009-05-101-1/+28
| | | | | | | | | | | Add logging to the RESTRunner. Also, use pkg_resources.resource_stream() instead of .resource_string() where appropriate. Add a bunch of XXX comments for things I need to figure out about the Zope-ish parts of the lazr.restful implementation. Change __getitem__() api to _lookup().
* Minor cleanupsBarry Warsaw2009-03-051-2/+5
|
* Massive digester rework.Barry Warsaw2009-02-041-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves actual digest creation and sending into a new queue runner. That way, digest creation does not block the main incoming processor. Lots of code clean up and reorganization too, and many fixes. digest_last_sent_at: Make this a DateTime digest_size_threshold: Make this a Float digest_volume_frequency: Make this an Enum DigestFrequency: new enum Fix up IMailingList interface to reflect reality. In Runner base class, allow for msg.get_sender() to return a False value. If this happens (as it can with the empty marker messages used to signal the digester that there's work to do), just use the list's preferred language. Give the retry.py and incoming.py queue runner modules some proper epilogues. The EmptyingRunner (for testing) logs itself as the runner its wrapping. The digest file name now ends in .mmdf since that's the format we're using. Add 'create_list' to doctest globals. Add a Mailbox class to add support for the context manager protocol.
* Push the source directory into a 'src' subdirectory so that zc.buildout worksBarry Warsaw2009-01-251-0/+248
correctly regardless of how it's used.