summaryrefslogtreecommitdiff
path: root/src/mailman/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge the Pycon 2010 sprint branch replacing lazr.restful with restish as theBarry Warsaw2010-03-031-17/+25
|\ | | | | | | underlying REST framework.
| * Complete the conversion to restish. All the tests pass and we're now actuallyBarry Warsaw2010-02-241-17/+25
| | | | | | | | | | | | RESTful. We have to use httplib2 to get DELETE and PUT. This is a prototype and could still use much cleanup.
* | Merge Jon Dugan's better fix for OS X's /private symlink stuff.Barry Warsaw2010-02-241-5/+4
|\ \ | |/ |/|
| * generalize test_current_working_directory() to avoid symlink confusionsJon Dugan2010-02-221-5/+4
|/
* Fix the test on Mac OS X. I am not proud of this.Barry Warsaw2010-02-221-1/+5
|
* Happy New Year.Barry Warsaw2010-01-016-6/+6
|
* * Leave a mailing list via the REST API.Barry Warsaw2009-12-281-1/+1
| | | | | | * delete_member(): If the address is not associated with a member, raise NotAMemberError. * NotAMemberError -> interfaces/member.py
* Extend the mailman.cfg search algorithm, and make it work across allBarry Warsaw2009-12-131-0/+179
| | | | applications.
* Bump to version 3.0a5Barry Warsaw2009-11-301-8/+9
| | | | Fix a test to use pkg_resources instead of open.
* Byte literalsBarry Warsaw2009-11-291-6/+6
|
* Expose 'transaction' as an alias for config.db in the doctest globs. ThisBarry Warsaw2009-07-211-1/+1
| | | | | | | | means commit() is now transaction.commit() in doctests. Add tests of extended domain creation, which exposes the need to unlock the database (via transaction.abort()) so that the foreground test process doesn't lock the background REST server process.
* Our first writable REST API! You can now create new domains through theBarry Warsaw2009-07-201-3/+16
| | | | | | | | | webserver. Fix the https/http urls. Add the adapter for HTTPCharsets so POSTs work properly. Nice little cargo cult from lazr.restful.
* De-u-literal-ify our doctests.Barry Warsaw2009-07-181-1/+4
|
* De-u-literal-ify our doctests.Barry Warsaw2009-07-171-0/+4
|
* Wow. Put domains into the database.Barry Warsaw2009-07-161-3/+5
| | | | | | | | Add an IDomainManager and a global domain manager which can be gotten by adapting the global config object. Add an IDomainCollection interface for exposing the domain manager onto the API.
* Add an adapter for IDomain to IAbsoluteURL and add some zope.security onionsBarry Warsaw2009-06-291-1/+8
| | | | to the varnish.
* Allow for setting the doctest layer in the doctest package's __init__. If notBarry Warsaw2009-05-271-5/+15
| | | | given, then SMTPLayer is used by default.
* A working test of the REST server. http://localhost:8001/3.0/sys returnsBarry Warsaw2009-05-041-0/+19
| | | | useful information. It's GET only atm.
* Move mailman.Message to mailman.email.Message. Rename Message.get_sender() toBarry Warsaw2009-02-091-1/+1
| | | | | | | | | Message.sender (property) and Message.get_senders() to Message.senders (another property). The semantics of .sender is slightly different too; it no longer consults config.mailman.use_envelope_sender. Add absolute_import and unicode_literals to Utils.py, and clean up a few imports.
* Massive digester rework.Barry Warsaw2009-02-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2593-0/+11529
correctly regardless of how it's used.